mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 09:32:45 +00:00
Use ISO format to print datetime
This commit is contained in:
parent
af36b652aa
commit
a42396254b
@ -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…
x
Reference in New Issue
Block a user