From 9694e5194cba1eab786eb285530feac44f356df0 Mon Sep 17 00:00:00 2001 From: Fabian Kurz Date: Wed, 1 Jun 2016 08:38:27 +0800 Subject: [PATCH] lwsl_timestamp month off by one --- lib/libwebsockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c index 19608d76..fa5e61e8 100644 --- a/lib/libwebsockets.c +++ b/lib/libwebsockets.c @@ -1157,7 +1157,7 @@ lwsl_timestamp(int level, char *p, int len) n = snprintf(p, len, "[%04d/%02d/%02d %02d:%02d:%02d:%04d] %s: ", ptm->tm_year + 1900, - ptm->tm_mon, + ptm->tm_mon + 1, ptm->tm_mday, ptm->tm_hour, ptm->tm_min,