diff --git a/Source/Core/Core/Movie.cpp b/Source/Core/Core/Movie.cpp index aee5e4707a6..09ea4a0d7af 100644 --- a/Source/Core/Core/Movie.cpp +++ b/Source/Core/Core/Movie.cpp @@ -159,8 +159,8 @@ std::string MovieManager::GetRTCDisplay() const const time_t current_time = CEXIIPL::GetEmulatedTime(m_system, CEXIIPL::UNIX_EPOCH); const tm gm_time = fmt::gmtime(current_time); - // Use current locale for formatting time, as fmt is locale-agnostic by default. - return fmt::format(std::locale{""}, "Date/Time: {:%c}", gm_time); + // Using L for locale-dependant formatting. + return fmt::format(std::locale{""}, "Date/Time: {:L%c}", gm_time); } // NOTE: GPU Thread diff --git a/Source/Core/Core/State.cpp b/Source/Core/Core/State.cpp index ffd811bd6c7..1714e3add1b 100644 --- a/Source/Core/Core/State.cpp +++ b/Source/Core/Core/State.cpp @@ -285,8 +285,8 @@ static std::string SystemTimeAsDoubleToString(double time) if (!local_time) return ""; - // fmt is locale agnostic by default, so explicitly use current locale. - return fmt::format(std::locale{""}, "{:%x %X}", *local_time); + // Using L for locale-dependant formatting. + return fmt::format(std::locale{""}, "{:L%x %X}", *local_time); } static std::string MakeStateFilename(int number);