From fe4c512839f9f613fc5098e5a9d8c9a402e60aa0 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 10 May 2023 11:57:48 +0100 Subject: Rename duration to timeutils and relocate InspIRCd::TimeString. --- src/modules/m_alltime.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules/m_alltime.cpp') 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; -- cgit v1.3.1-10-gc9f91