From f76dcfc20f72c45d14d76b2d82f707d0a513d1bb Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 23 Mar 2025 11:32:12 +0000 Subject: Add constants for the common time formats. --- src/helperfuncs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helperfuncs.cpp') 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)) -- cgit v1.3.1-10-gc9f91