From 20a701bdf03c33bc899332145adcc06819e81627 Mon Sep 17 00:00:00 2001 From: eplanet Date: Sat, 9 Dec 2017 15:48:18 +0100 Subject: Call tzset at each time print --- src/print_time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/print_time.c') 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) { -- cgit v1.2.3