mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-04 06:46:23 +00:00
change date format from d/m/y to Y/m/d
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user