aboutsummaryrefslogtreecommitdiff
path: root/src/helperfuncs.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/helperfuncs.cpp
parentAllow using the long duration format in the xline message. (diff)
Add constants for the common time formats.
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 3c5f0f399..756aeb11b 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -617,7 +617,7 @@ std::string Time::ToString(time_t curtime, const char* format, bool utc)
// This is the default format used by asctime without the terminating new line.
if (!format)
- format = "%a %b %d %Y %H:%M:%S";
+ format = Time::DEFAULT_SHORT;
char buffer[512];
if (!strftime(buffer, sizeof(buffer), format, timeinfo))