1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 07:53:53 +00:00

Use ISO format to print datetime

This commit is contained in:
Andrei Kortunov 2020-01-06 11:27:11 +04:00
parent af36b652aa
commit a42396254b
2 changed files with 2 additions and 2 deletions

View file

@ -400,7 +400,7 @@ namespace MWGui
struct tm* timeinfo;
timeinfo = localtime(&time);
text << std::put_time(timeinfo, "%d.%m.%Y %T") << "\n";
text << std::put_time(timeinfo, "%Y.%m.%d %T") << "\n";
text << "#{sLevel} " << mCurrentSlot->mProfile.mPlayerLevel << "\n";
text << "#{sCell=" << mCurrentSlot->mProfile.mPlayerCell << "}\n";

View file

@ -1228,7 +1228,7 @@ namespace MWScript
msg << "Report time: ";
std::time_t currentTime = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
msg << std::put_time(std::gmtime(&currentTime), "%d.%m.%Y %T UTC") << std::endl;
msg << std::put_time(std::gmtime(&currentTime), "%Y.%m.%d %T UTC") << std::endl;
msg << "Content file: ";