Skip to content

Commit

Permalink
Enable change timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
dzungpv committed Dec 27, 2023
1 parent c3e66da commit d09b5fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d09b5fb

Please sign in to comment.