projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f222cd
)
lwsl_timestamp month off by one
author
Fabian Kurz
<fabian@fkurz.net>
Wed, 1 Jun 2016 00:38:27 +0000
(08:38 +0800)
committer
Andy Green
<andy@warmcat.com>
Wed, 1 Jun 2016 00:38:27 +0000
(08:38 +0800)
lib/libwebsockets.c
patch
|
blob
|
history
diff --git
a/lib/libwebsockets.c
b/lib/libwebsockets.c
index 19608d768498c3a1102c1b75db305ff7f31b8232..fa5e61e888bde082f006b463d016ababb629e7d1 100644
(file)
--- 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,