change date format from d/m/y to Y/m/d

This commit is contained in:
Lion Kortlepel
2022-11-06 01:40:55 +01:00
parent 2279ba4d6b
commit 3c138e2891

View File

@@ -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<std::chrono::seconds>(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;
}