diff options
| author | Joshua Vandaƫle <joshua@vandaele.software> | 2025-06-04 13:12:50 +0200 |
|---|---|---|
| committer | Joshua Vandaƫle <joshua@vandaele.software> | 2025-06-04 13:32:12 +0200 |
| commit | 4b65cc9a4c51af4308f748b3e7bf25d80db83860 (patch) | |
| tree | 7b9ee319df7091ab78810add0b573f69d2b9ac29 /Source/Core/Common/FatFsUtil.cpp | |
| parent | 1c9389a1fbfb24e6ea9370c3aa36c61ca528d792 (diff) | |
fmt: Replace deprecated `fmt::localtime` usage with `Common::LocalTime`
Diffstat (limited to 'Source/Core/Common/FatFsUtil.cpp')
| -rw-r--r-- | Source/Core/Common/FatFsUtil.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/Core/Common/FatFsUtil.cpp b/Source/Core/Common/FatFsUtil.cpp index 9c513d5e42..80e2c424b4 100644 --- a/Source/Core/Common/FatFsUtil.cpp +++ b/Source/Core/Common/FatFsUtil.cpp @@ -25,6 +25,7 @@ #include "Common/Logging/Log.h" #include "Common/ScopeGuard.h" #include "Common/StringUtil.h" +#include "Common/TimeUtil.h" #include "Core/Config/MainSettings.h" @@ -95,12 +96,7 @@ int SDCardDiskIOCtl(File::IOFile* image, u8 pdrv, u8 cmd, void* buff) u32 GetSystemTimeFAT() { const std::time_t time = std::time(nullptr); - std::tm tm; -#ifdef _WIN32 - localtime_s(&tm, &time); -#else - localtime_r(&time, &tm); -#endif + std::tm tm = *Common::LocalTime(time); DWORD fattime = 0; fattime |= (tm.tm_year - 80) << 25; |
