mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Merge pull request #10169 from leoetlino/fmt-localtime
Use fmt::localtime instead of thread-unsafe std::localtime
This commit is contained in:
@ -140,6 +140,6 @@ std::string SettingsHandler::GenerateSerialNumber()
|
||||
// Must be 9 characters at most; otherwise the serial number will be rejected by SDK libraries,
|
||||
// as there is a check to ensure the string length is strictly lower than 10.
|
||||
// 3 for %j, 2 for %H, 2 for %M, 2 for %S.
|
||||
return fmt::format("{:%j%H%M%S}", *std::localtime(&t));
|
||||
return fmt::format("{:%j%H%M%S}", fmt::localtime(t));
|
||||
}
|
||||
} // namespace Common
|
||||
|
Reference in New Issue
Block a user