From b67bf20335bf305a976b6fd5ac63393c20784188 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 23 Aug 2025 21:09:21 +1000 Subject: [PATCH] Mini: Fix missing format in FormatNumber() --- src/duckstation-mini/mini_host.cpp | 2 +- src/duckstation-regtest/regtest_host.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/duckstation-mini/mini_host.cpp b/src/duckstation-mini/mini_host.cpp index 41c0ab0d8..d8d4f798c 100644 --- a/src/duckstation-mini/mini_host.cpp +++ b/src/duckstation-mini/mini_host.cpp @@ -1423,7 +1423,7 @@ std::string Host::FormatNumber(NumberFormatType type, s64 value) #endif char buf[128]; - std::strftime(buf, std::size(buf), "%x", &ttime); + std::strftime(buf, std::size(buf), format, &ttime); ret.assign(buf); } else diff --git a/src/duckstation-regtest/regtest_host.cpp b/src/duckstation-regtest/regtest_host.cpp index dd9fee8ca..4e42cfec8 100644 --- a/src/duckstation-regtest/regtest_host.cpp +++ b/src/duckstation-regtest/regtest_host.cpp @@ -613,7 +613,7 @@ std::string Host::FormatNumber(NumberFormatType type, s64 value) #endif char buf[128]; - std::strftime(buf, std::size(buf), "%x", &ttime); + std::strftime(buf, std::size(buf), format, &ttime); ret.assign(buf); } else