MINOR: log: add '%Tl' to log-format
The '%Tl' is similar to '%T', but using local timezone.
diff --git a/src/haproxy.c b/src/haproxy.c
index bfbcb32..e252032 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -402,6 +402,7 @@
struct wordlist *wl;
char *progname;
char *change_dir = NULL;
+ struct tm curtime;
trash = malloc(global.tune.bufsize);
@@ -428,6 +429,10 @@
tv_update_date(-1,-1);
start_date = now;
+ /* Get the numeric timezone. */
+ get_localtime(start_date.tv_sec, &curtime);
+ strftime(localtimezone, 6, "%z", &curtime);
+
signal_init();
init_task();
init_session();