From a42396254bd7f97bab8c64852630860a8b845c48 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Mon, 6 Jan 2020 11:27:11 +0400 Subject: [PATCH] Use ISO format to print datetime --- apps/openmw/mwgui/savegamedialog.cpp | 2 +- apps/openmw/mwscript/miscextensions.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwgui/savegamedialog.cpp b/apps/openmw/mwgui/savegamedialog.cpp index 98449d5075..f85bfc8d37 100644 --- a/apps/openmw/mwgui/savegamedialog.cpp +++ b/apps/openmw/mwgui/savegamedialog.cpp @@ -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"; diff --git a/apps/openmw/mwscript/miscextensions.cpp b/apps/openmw/mwscript/miscextensions.cpp index ada1af59e0..8be3945a9c 100644 --- a/apps/openmw/mwscript/miscextensions.cpp +++ b/apps/openmw/mwscript/miscextensions.cpp @@ -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: ";