fwd.c (fw_log): Report the timezone in log messages.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 5 Feb 2016 01:07:59 +0000 (01:07 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 5 Feb 2016 01:07:59 +0000 (01:07 +0000)
fwd.c

diff --git a/fwd.c b/fwd.c
index b621f45..d086ed3 100644 (file)
--- a/fwd.c
+++ b/fwd.c
@@ -245,7 +245,7 @@ void fw_log(time_t t, const char *fmt, ...)
     t = time(0);
   tm = localtime(&t);
   DENSURE(&d, 64);
-  d.len += strftime(d.buf, d.sz, "%Y-%m-%d %H:%M:%S ", tm);
+  d.len += strftime(d.buf, d.sz, "%Y-%m-%d %H:%M:%S %z ", tm);
   va_start(ap, fmt);
   dstr_vputf(&d, fmt, &ap);
   va_end(ap);