From 4791af4453d1a36f02a0512b1e08e15318c2408b Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Sun, 30 Oct 2022 22:07:41 +0100 Subject: [PATCH] use system_clock::to_time_t instead of high_resolution_clock::* --- src/TConsole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TConsole.cpp b/src/TConsole.cpp index 92c64a9..6affb24 100644 --- a/src/TConsole.cpp +++ b/src/TConsole.cpp @@ -311,7 +311,7 @@ void TConsole::Command_Debug(const std::string&, const std::vector& auto Now = std::chrono::high_resolution_clock::now(); auto Seconds = std::chrono::duration_cast(Now - Locked->ConnectionTime); std::string ConnectedSince = fmt::format("{:%Y/%m/%d %H:%M:%S}, {:%H:%M:%S} ago ({} seconds)", - fmt::localtime(std::chrono::high_resolution_clock::to_time_t(Locked->ConnectionTime)), + fmt::localtime(std::chrono::system_clock::to_time_t(Locked->ConnectionTime)), Seconds, Seconds.count()); Application::Console().WriteRaw(fmt::format(