aboutsummaryrefslogtreecommitdiff
path: root/src/print_time.c
diff options
context:
space:
mode:
authorIngo Bürk2017-12-09 16:17:42 +0100
committerGitHub2017-12-09 16:17:42 +0100
commitc3424e10bee91a4e0f21e7f0b72975e938e3f501 (patch)
tree0d0168d0eee79de217c3eec07dc23922f0dcc030 /src/print_time.c
parentMerge pull request #252 from GuyOfThePery/patch-1 (diff)
parentCall tzset at each time print (diff)
Merge pull request #253 from eplanet/always_reload_tz
Call tzset at each time print
Diffstat (limited to 'src/print_time.c')
-rw-r--r--src/print_time.c2
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) {