aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_check.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-03-23 14:51:05 +0000
committerGravatar Sadie Powell2025-03-23 14:51:05 +0000
commite4b642048cdcf7f631d32520d7df159b3baff3c5 (patch)
treeedb0cf50245aa1892c0ed70949e91b5abcfe4c0b /src/modules/m_check.cpp
parentAdd constants for the common time formats. (diff)
Switch check to use the default long time format.
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r--src/modules/m_check.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index 2597c7b93..a8b73f45e 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -42,9 +42,8 @@ private:
static std::string FormatTime(time_t ts)
{
- std::string timestr(Time::ToString(ts, "%Y-%m-%d %H:%M:%S UTC (", true));
- timestr.append(ConvToStr(ts));
- timestr.push_back(')');
+ auto timestr = Time::ToString(ts, Time::DEFAULT_LONG, true);
+ timestr += INSP_FORMAT(" ({})", ServerInstance->Time());
return timestr;
}