diff options
| author | Joshua Vandaƫle <joshua@vandaele.software> | 2025-06-04 13:12:50 +0200 |
|---|---|---|
| committer | Joshua Vandaƫle <joshua@vandaele.software> | 2025-06-04 13:32:12 +0200 |
| commit | 4b65cc9a4c51af4308f748b3e7bf25d80db83860 (patch) | |
| tree | 7b9ee319df7091ab78810add0b573f69d2b9ac29 /Source/Core/Common/SettingsHandler.cpp | |
| parent | 1c9389a1fbfb24e6ea9370c3aa36c61ca528d792 (diff) | |
fmt: Replace deprecated `fmt::localtime` usage with `Common::LocalTime`
Diffstat (limited to 'Source/Core/Common/SettingsHandler.cpp')
| -rw-r--r-- | Source/Core/Common/SettingsHandler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/Common/SettingsHandler.cpp b/Source/Core/Common/SettingsHandler.cpp index 6cc9f5a8fe..b0faf6f6f0 100644 --- a/Source/Core/Common/SettingsHandler.cpp +++ b/Source/Core/Common/SettingsHandler.cpp @@ -122,7 +122,6 @@ std::string SettingsWriter::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}", fmt::localtime(t)); + return fmt::format("{:09}", t % 1000000000); } } // namespace Common |
