change time to local time
All checks were successful
build_test / build (push) Successful in 2m1s

This commit is contained in:
PoliEcho 2025-04-14 14:18:29 +02:00
parent 7dc987ab2c
commit a61ff1e1d7

View File

@ -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)