From a61ff1e1d79069b351e60907cb63132ec2b0b72b Mon Sep 17 00:00:00 2001 From: PoliEcho Date: Mon, 14 Apr 2025 14:18:29 +0200 Subject: [PATCH] change time to local time --- src/gameske_funkce.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gameske_funkce.cpp b/src/gameske_funkce.cpp index 3f2d4af..8c3a35c 100644 --- a/src/gameske_funkce.cpp +++ b/src/gameske_funkce.cpp @@ -160,7 +160,8 @@ std::string spawncmd() { void async_clock(WINDOW* win) { std::this_thread::sleep_for(std::chrono::milliseconds(150)); while (true) { - auto now = std::chrono::system_clock::now(); + auto now = + std::chrono::current_zone()->to_local(std::chrono::system_clock::now()); std::string time_str; try { // Format just the time (HH:MM:SS)