util: correct off-by-one in month display
This commit is contained in:
parent
a9a2840d81
commit
7ff1280bbb
1 changed files with 1 additions and 1 deletions
2
util.c
2
util.c
|
@ -80,7 +80,7 @@ void applog(int prio, const char *fmt, ...)
|
||||||
f = alloca(len);
|
f = alloca(len);
|
||||||
sprintf(f, "[%d-%02d-%02d %02d:%02d:%02d] %s\n",
|
sprintf(f, "[%d-%02d-%02d %02d:%02d:%02d] %s\n",
|
||||||
tm.tm_year + 1900,
|
tm.tm_year + 1900,
|
||||||
tm.tm_mon,
|
tm.tm_mon + 1,
|
||||||
tm.tm_mday,
|
tm.tm_mday,
|
||||||
tm.tm_hour,
|
tm.tm_hour,
|
||||||
tm.tm_min,
|
tm.tm_min,
|
||||||
|
|
Loading…
Reference in a new issue