diff options
author | eplanet <emeric.planet@gmail.com> | 2017-12-09 15:48:18 +0100 |
---|---|---|
committer | eplanet <emeric.planet@gmail.com> | 2017-12-09 15:48:18 +0100 |
commit | 20a701bdf03c33bc899332145adcc06819e81627 (patch) | |
tree | 0d0168d0eee79de217c3eec07dc23922f0dcc030 | |
parent | 35bb9a06fb102574b68a443ccfba470a6150ba52 (diff) |
Call tzset at each time print
-rw-r--r-- | src/print_time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_time.c b/src/print_time.c index c8da9d6..3ed32b0 100644 --- a/src/print_time.c +++ b/src/print_time.c @@ -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) { |