aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_alltime.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-03-23 11:32:12 +0000
committerGravatar Sadie Powell2025-03-23 14:40:17 +0000
commitf76dcfc20f72c45d14d76b2d82f707d0a513d1bb (patch)
tree8a7c3e4517881d6b7ca77d9e1b04c7f14630f0c4 /src/modules/m_alltime.cpp
parentAllow using the long duration format in the xline message. (diff)
downloadinspircd++-f76dcfc20f72c45d14d76b2d82f707d0a513d1bb.tar.gz
inspircd++-f76dcfc20f72c45d14d76b2d82f707d0a513d1bb.tar.bz2
inspircd++-f76dcfc20f72c45d14d76b2d82f707d0a513d1bb.zip
Add constants for the common time formats.
Diffstat (limited to 'src/modules/m_alltime.cpp')
-rw-r--r--src/modules/m_alltime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp
index 64c6a8638..5f3d09f4b 100644
--- a/src/modules/m_alltime.cpp
+++ b/src/modules/m_alltime.cpp
@@ -37,7 +37,7 @@ public:
CmdResult Handle(User* user, const Params& parameters) override
{
- auto timestr = Time::ToString(ServerInstance->Time(), "%A, %d %B %Y @ %H:%M:%S %Z", true);
+ auto timestr = Time::ToString(ServerInstance->Time(), Time::DEFAULT_LONG, true);
timestr += INSP_FORMAT(" ({})", ServerInstance->Time());
user->WriteRemoteNumeric(RPL_TIME, ServerInstance->Config->ServerName, timestr);