diff --git a/source/include/Utils/Time.hpp b/source/include/Utils/Time.hpp index 253eff4f4..ca990ad04 100644 --- a/source/include/Utils/Time.hpp +++ b/source/include/Utils/Time.hpp @@ -23,9 +23,7 @@ MAA_NS_BEGIN inline std::string format_now() { #ifndef MAA_USE_POSIX_TIME - return std::format( - "{}", - std::chrono::current_zone()->to_local(std::chrono::floor(std::chrono::system_clock::now()))); + return std::format("{}", std::chrono::floor(std::chrono::system_clock::now())); #else timeval tv = {}; gettimeofday(&tv, nullptr); @@ -46,7 +44,7 @@ inline std::string format_now() inline std::string format_now_for_filename() { #ifndef MAA_USE_POSIX_TIME - return std::format("{:%Y.%m.%d-%H.%M.%S}", std::chrono::current_zone()->to_local(std::chrono::system_clock::now())); + return std::format("{:%Y.%m.%d-%H.%M.%S}", std::chrono::system_clock::now()); #else timeval tv = {}; gettimeofday(&tv, nullptr);