From 216ddf3da5798fe3e7246310ebe0b77e591ee34e Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 14 Sep 2015 12:12:24 +0000 Subject: [PATCH] Move tzset() from log_open to main. --- log.c | 2 -- tmux.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/log.c b/log.c index ecb9698a..8c2fdb07 100644 --- a/log.c +++ b/log.c @@ -48,8 +48,6 @@ log_open(const char *path) setvbuf(log_file, NULL, _IOLBF, 0); event_set_log_callback(log_event_cb); - - tzset(); } /* Close logging. */ diff --git a/tmux.c b/tmux.c index 875e8d72..0b8e6a91 100644 --- a/tmux.c +++ b/tmux.c @@ -199,6 +199,7 @@ main(int argc, char **argv) #endif setlocale(LC_TIME, ""); + tzset(); if (**argv == '-') flags = CLIENT_LOGIN;