Move tzset() from log_open to main.

This commit is contained in:
nicm 2015-09-14 12:12:24 +00:00
parent 8da6de3e66
commit 216ddf3da5
2 changed files with 1 additions and 2 deletions

2
log.c
View File

@ -48,8 +48,6 @@ log_open(const char *path)
setvbuf(log_file, NULL, _IOLBF, 0); setvbuf(log_file, NULL, _IOLBF, 0);
event_set_log_callback(log_event_cb); event_set_log_callback(log_event_cb);
tzset();
} }
/* Close logging. */ /* Close logging. */

1
tmux.c
View File

@ -199,6 +199,7 @@ main(int argc, char **argv)
#endif #endif
setlocale(LC_TIME, ""); setlocale(LC_TIME, "");
tzset();
if (**argv == '-') if (**argv == '-')
flags = CLIENT_LOGIN; flags = CLIENT_LOGIN;