Merge pull request #10169 from leoetlino/fmt-localtime

Use fmt::localtime instead of thread-unsafe std::localtime
This commit is contained in:
Mai M
2021-11-07 00:08:14 -04:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@ -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);