From: eplanet Date: Sat, 9 Dec 2017 14:48:18 +0000 (+0100) Subject: Call tzset at each time print X-Git-Tag: 2.12~13^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F253%2Fhead;p=i3%2Fi3status Call tzset at each time print --- 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) {