about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarq Schneider <queueRAM@gmail.com>2012-05-06 15:29:29 -0500
committerMarq Schneider <queueRAM@gmail.com>2012-05-06 15:29:29 -0500
commitf6eef6eebf060605852aa85a98fe1a56aa87cd86 (patch)
tree74a5787e209645580b9dfa14b3da84387cfb3dfd
parent8057ebfb51dfc256b7045065f8d40cca1017c86b (diff)
downloadbtpd-f6eef6eebf060605852aa85a98fe1a56aa87cd86.tar.gz
btpd-f6eef6eebf060605852aa85a98fe1a56aa87cd86.zip
Add year to log timestamp.
Closes GH-32
-rw-r--r--btpd/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btpd/util.c b/btpd/util.c
index edf935d..9e7aa43 100644
--- a/btpd/util.c
+++ b/btpd/util.c
@@ -95,7 +95,7 @@ log_common(uint32_t type, const char *fmt, va_list ap)
     if (type & btpd_logmask) {
         char tbuf[20];
         time_t tp = time(NULL);
-        strftime(tbuf, 20, "%b %e %T", localtime(&tp));
+        strftime(tbuf, 20, "%Y %b %e %T", localtime(&tp));
         printf("%s %s: ", tbuf, logtype_str(type));
         vprintf(fmt, ap);
     }