summaryrefslogtreecommitdiff
path: root/Source/Core/Common/SettingsHandler.cpp
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2025-06-08 04:04:37 +0100
committerGitHub <noreply@github.com>2025-06-08 04:04:37 +0100
commit19fbbf0dba32ad98fe791804cfd464ced91464f5 (patch)
tree24fd224e2185a3c77c57fb50f8af63ce0df21493 /Source/Core/Common/SettingsHandler.cpp
parent1786e34bd34db61b910064741294e87bfb4d3e91 (diff)
parent4b65cc9a4c51af4308f748b3e7bf25d80db83860 (diff)
Merge pull request #13727 from JoshuaVandaele/fmt-11.2.0-localtime-deprec
fmt: Replace deprecated `fmt::localtime` usage with `Common::LocalTime`
Diffstat (limited to 'Source/Core/Common/SettingsHandler.cpp')
-rw-r--r--Source/Core/Common/SettingsHandler.cpp3
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