From d09b5fb77f74b4ff24f44e455efd37ae7a8f6995 Mon Sep 17 00:00:00 2001 From: VietDzung Date: Wed, 27 Dec 2023 10:42:44 +0700 Subject: [PATCH] Enable change timezone --- main/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/main.cpp b/main/main.cpp index 444ad7c..6b08703 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -3266,7 +3266,7 @@ String getCurrentTime() time(&now); // Set timezone to Vietnam Standard Time - setenv("TZ", "ICT-7", 1); + setenv("TZ", timezone.c_str(), 1); tzset(); localtime_r(&now, &timeinfo);