Skip to content

Commit

Permalink
Update Watchy.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
crossplatformdev authored Aug 18, 2024
1 parent 3f78cca commit cc7bbac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Watchy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,11 +678,11 @@ void Watchy::setTime() {
if(TIMEZONES_NON_GMT_OVERRIDE == 0){
setenv("TZ", timeZones[tzIndex].timezone, 1);
} else{
#if TIMEZONES_NON_GMT_OVERRIDE == 1
setenv("TZ", tz_override.timezone, 1);
#else
setenv("TZ", timeZones[TIMEZONES_SELECTED].timezone, 1);
#endif
if (TIMEZONES_NON_GMT_OVERRIDE == 1){
setenv("TZ", tz_override.timezone, 1);
}else {
setenv("TZ", timeZones[TIMEZONES_SELECTED].timezone, 1);
}
}

tzset();
Expand Down

0 comments on commit cc7bbac

Please sign in to comment.