aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_alltime.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-05-10 11:57:48 +0100
committerGravatar Sadie Powell2023-05-10 11:57:48 +0100
commitfe4c512839f9f613fc5098e5a9d8c9a402e60aa0 (patch)
tree8bf01388c2f66ebfaaa8efd2f47154958ce0bbae /src/modules/m_alltime.cpp
parentShow more details about unactivated/expired client certificates. (diff)
Rename duration to timeutils and relocate InspIRCd::TimeString.
Diffstat (limited to 'src/modules/m_alltime.cpp')
-rw-r--r--src/modules/m_alltime.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp
index 7b638e60e..d71dd4927 100644
--- a/src/modules/m_alltime.cpp
+++ b/src/modules/m_alltime.cpp
@@ -25,6 +25,7 @@
#include "inspircd.h"
+#include "timeutils.h"
class CommandAlltime final
: public Command
@@ -38,7 +39,7 @@ public:
CmdResult Handle(User* user, const Params& parameters) override
{
- const std::string fmtdate = InspIRCd::TimeString(ServerInstance->Time(), "%Y-%m-%d %H:%M:%S", true);
+ const std::string fmtdate = Time::ToString(ServerInstance->Time(), "%Y-%m-%d %H:%M:%S", true);
std::string msg = "System time is " + fmtdate + " (" + ConvToStr(ServerInstance->Time()) + ") on " + ServerInstance->Config->ServerName;