Use ISO format to print datetime

pull/2653/head
Andrei Kortunov 5 years ago
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(&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: ";

Loading…
Cancel
Save