From cbac65d3261faed761589ed3eede2946c726e403 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Thu, 8 Oct 2026 15:18:04 -0500 Subject: [PATCH] Core: Movie and State: Add 'L' option to fmt format string to actually use the current locale. --- Source/Core/Core/Movie.cpp | 4 ++-- Source/Core/Core/State.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/Movie.cpp b/Source/Core/Core/Movie.cpp index 046861b7b2..fe5e55c0c9 100644 --- a/Source/Core/Core/Movie.cpp +++ b/Source/Core/Core/Movie.cpp @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include @@ -159,7 +158,8 @@ std::string MovieManager::GetRTCDisplay() const const tm gm_time = fmt::gmtime(current_time); // Use current locale for formatting time, as fmt is locale-agnostic by default. - return fmt::format(Common::GetEnvironmentLocale(), "Date/Time: {:%c}", gm_time); + // Using L for locale-dependent formatting. + return fmt::format(Common::GetEnvironmentLocale(), "Date/Time: {:L%c}", gm_time); } // NOTE: GPU Thread diff --git a/Source/Core/Core/State.cpp b/Source/Core/Core/State.cpp index 3a36ec6021..cecda5f4e8 100644 --- a/Source/Core/Core/State.cpp +++ b/Source/Core/Core/State.cpp @@ -5,7 +5,6 @@ #include #include -#include #include #include #include @@ -301,7 +300,8 @@ static std::string SystemTimeAsDoubleToString(double time) return ""; // fmt is locale agnostic by default, so explicitly use current locale. - return fmt::format(Common::GetEnvironmentLocale(), "{:%x %X}", *local_time); + // Using L for locale-dependent formatting. + return fmt::format(Common::GetEnvironmentLocale(), "{:L%x %X}", *local_time); } static std::string MakeStateFilename(u32 number)