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:
parent
af36b652aa
commit
a42396254b
2 changed files with 2 additions and 2 deletions
|
@ -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";
|
||||
|
|
|
@ -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(¤tTime), "%d.%m.%Y %T UTC") << std::endl;
|
||||
msg << std::put_time(std::gmtime(¤tTime), "%Y.%m.%d %T UTC") << std::endl;
|
||||
|
||||
msg << "Content file: ";
|
||||
|
||||
|
|
Loading…
Reference in a new issue