Call tzset at each time print

This commit is contained in:
eplanet 2017-12-09 15:48:18 +01:00
parent 35bb9a06fb
commit 20a701bdf0

View File

@ -29,9 +29,9 @@ void set_timezone(const char *tz) {
} else {
unsetenv("TZ");
}
tzset();
current_timezone = tz;
}
tzset();
}
void print_time(yajl_gen json_gen, char *buffer, const char *title, const char *format, const char *tz, const char *locale, const char *format_time, time_t t) {