diff options
| author | Léo Lam <leo@leolam.fr> | 2021-10-15 22:49:13 +0200 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2021-10-15 22:49:13 +0200 |
| commit | fd7df2ccae4ef18e8fdcf3dcf369c8f2ff185825 (patch) | |
| tree | 6190be50acc14fd9421d1e193879794e7495ec0a /Source/Core/VideoCommon | |
| parent | 2187f11b083e4c8b4d0d1110810c5d4625af73dd (diff) | |
Use fmt::localtime instead of thread-unsafe std::localtime
fmt::localtime is also less awkward to use compared to std::localtime.
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/FrameDump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/FrameDump.cpp b/Source/Core/VideoCommon/FrameDump.cpp index ceba863b89..b4eebc7d1a 100644 --- a/Source/Core/VideoCommon/FrameDump.cpp +++ b/Source/Core/VideoCommon/FrameDump.cpp @@ -86,7 +86,7 @@ std::string GetDumpPath(const std::string& extension, std::time_t time, u32 inde File::GetUserPath(D_DUMPFRAMES_IDX) + SConfig::GetInstance().GetGameID(); const std::string base_name = - fmt::format("{}_{:%Y-%m-%d_%H-%M-%S}_{}", path_prefix, *std::localtime(&time), index); + fmt::format("{}_{:%Y-%m-%d_%H-%M-%S}_{}", path_prefix, fmt::localtime(time), index); const std::string path = fmt::format("{}.{}", base_name, extension); |
