This commit is contained in:
Joshua Vandaële 2026-03-17 19:52:28 -04:00 committed by GitHub
commit 4e63752752
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 5 deletions

View File

@ -157,8 +157,7 @@ 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);
return fmt::format("Date/Time: {:%c}", gm_time);
}
// NOTE: GPU Thread

View File

@ -297,8 +297,7 @@ 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);
return fmt::format("{:%x %X}", *local_time);
}
static std::string MakeStateFilename(int number)

View File

@ -330,7 +330,7 @@ void PostProcessingConfiguration::SaveOptionsConfiguration()
case ConfigurationOption::OptionType::Float:
{
std::ostringstream value;
value.imbue(std::locale("C"));
value.imbue(std::locale::classic());
for (size_t i = 0; i < it.second.m_float_values.size(); ++i)
{