summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/AudioCommon.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/AudioCommon/AudioCommon.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/AudioCommon/AudioCommon.cpp')
-rw-r--r--Source/Core/AudioCommon/AudioCommon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/AudioCommon/AudioCommon.cpp b/Source/Core/AudioCommon/AudioCommon.cpp
index cd158f69e1..19ac9f6e9f 100644
--- a/Source/Core/AudioCommon/AudioCommon.cpp
+++ b/Source/Core/AudioCommon/AudioCommon.cpp
@@ -211,7 +211,7 @@ void StartAudioDump()
std::string path_prefix = File::GetUserPath(D_DUMPAUDIO_IDX) + SConfig::GetInstance().GetGameID();
std::string base_name =
- fmt::format("{}_{:%Y-%m-%d_%H-%M-%S}", path_prefix, *std::localtime(&start_time));
+ fmt::format("{}_{:%Y-%m-%d_%H-%M-%S}", path_prefix, fmt::localtime(start_time));
const std::string audio_file_name_dtk = fmt::format("{}_dtkdump.wav", base_name);
const std::string audio_file_name_dsp = fmt::format("{}_dspdump.wav", base_name);