mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-17 14:12:25 +00:00
change date format from d/m/y to Y/m/d
This commit is contained in:
+2
-2
@@ -77,7 +77,7 @@ static std::string GetDate() {
|
|||||||
char buf[30];
|
char buf[30];
|
||||||
std::string date;
|
std::string date;
|
||||||
if (Application::GetSettingBool(StrDebug)) {
|
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;
|
date += buf;
|
||||||
auto seconds = std::chrono::time_point_cast<std::chrono::seconds>(now);
|
auto seconds = std::chrono::time_point_cast<std::chrono::seconds>(now);
|
||||||
auto fraction = now - seconds;
|
auto fraction = now - seconds;
|
||||||
@@ -87,7 +87,7 @@ static std::string GetDate() {
|
|||||||
date += fracstr;
|
date += fracstr;
|
||||||
date += "] ";
|
date += "] ";
|
||||||
} else {
|
} 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;
|
date += buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user