From 3c138e28916e88fda890b748cdb96c63606029b7 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Sun, 6 Nov 2022 01:40:55 +0100 Subject: [PATCH] change date format from d/m/y to Y/m/d --- src/TConsole.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TConsole.cpp b/src/TConsole.cpp index c41a635..11685a1 100644 --- a/src/TConsole.cpp +++ b/src/TConsole.cpp @@ -77,7 +77,7 @@ static std::string GetDate() { char buf[30]; std::string date; if (Application::GetSettingBool(StrDebug)) { - std::strftime(buf, sizeof(buf), "[%d/%m/%y %T.", local_tm); + std::strftime(buf, sizeof(buf), "[%Y/%m/%d %T.", local_tm); date += buf; auto seconds = std::chrono::time_point_cast(now); auto fraction = now - seconds; @@ -87,7 +87,7 @@ static std::string GetDate() { date += fracstr; date += "] "; } else { - std::strftime(buf, sizeof(buf), "[%d/%m/%y %T] ", local_tm); + std::strftime(buf, sizeof(buf), "[%Y/%m/%d %T] ", local_tm); date += buf; }