Call tzset at each time print
This commit is contained in:
parent
35bb9a06fb
commit
20a701bdf0
@ -29,9 +29,9 @@ void set_timezone(const char *tz) {
|
|||||||
} else {
|
} else {
|
||||||
unsetenv("TZ");
|
unsetenv("TZ");
|
||||||
}
|
}
|
||||||
tzset();
|
|
||||||
current_timezone = tz;
|
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) {
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user