summaryrefslogtreecommitdiff
path: root/Source/Core/Common/SettingsHandler.cpp
diff options
context:
space:
mode:
authorMai M <mathew1800@gmail.com>2021-11-07 00:08:14 -0400
committerGitHub <noreply@github.com>2021-11-07 00:08:14 -0400
commit6c72e6814db693f6c139dda10f4fed4f48b2c957 (patch)
treea3705f24c2b0a33e13a4ae885862ed51d5a9dc70 /Source/Core/Common/SettingsHandler.cpp
parentc89226cbd4e0dccd9888012d6bb18b7565c473ad (diff)
parentfd7df2ccae4ef18e8fdcf3dcf369c8f2ff185825 (diff)
Merge pull request #10169 from leoetlino/fmt-localtime
Use fmt::localtime instead of thread-unsafe std::localtime
Diffstat (limited to 'Source/Core/Common/SettingsHandler.cpp')
-rw-r--r--Source/Core/Common/SettingsHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/SettingsHandler.cpp b/Source/Core/Common/SettingsHandler.cpp
index 54e7d1d929..109c80abb8 100644
--- a/Source/Core/Common/SettingsHandler.cpp
+++ b/Source/Core/Common/SettingsHandler.cpp
@@ -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