aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2011-04-11 17:32:25 -0400
committerJeff Garzik <jgarzik@pobox.com>2011-04-11 17:32:25 -0400
commit7ff1280bbbd1feb28ce350e2878a4e65fe94627a (patch)
tree013e688d2b15348e20c6b66758f3d5ad3a65bcb6
parenta9a2840d8198e45a990519431aa26586bbac8932 (diff)
util: correct off-by-one in month display
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index d5dc781..72a086a 100644
--- a/util.c
+++ b/util.c
@@ -80,7 +80,7 @@ void applog(int prio, const char *fmt, ...)
f = alloca(len);
sprintf(f, "[%d-%02d-%02d %02d:%02d:%02d] %s\n",
tm.tm_year + 1900,
- tm.tm_mon,
+ tm.tm_mon + 1,
tm.tm_mday,
tm.tm_hour,
tm.tm_min,