diff options
| author | 2025-03-23 11:32:12 +0000 | |
|---|---|---|
| committer | 2025-03-23 14:40:17 +0000 | |
| commit | f76dcfc20f72c45d14d76b2d82f707d0a513d1bb (patch) | |
| tree | 8a7c3e4517881d6b7ca77d9e1b04c7f14630f0c4 /src/modules/m_alltime.cpp | |
| parent | Allow using the long duration format in the xline message. (diff) | |
| download | inspircd++-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.cpp | 2 |
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); |
