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:
b1f80ee
)
win32 needs strange strftime args
author
Meir Yanovich
<meiry@github.invalid.com>
Tue, 5 Apr 2016 11:51:25 +0000
(19:51 +0800)
committer
Andy Green
<andy@warmcat.com>
Tue, 5 Apr 2016 11:51:25 +0000
(19:51 +0800)
test-server/test-server-status.c
patch
|
blob
|
history
diff --git
a/test-server/test-server-status.c
b/test-server/test-server-status.c
index
5fb599a
..
d85897b
100644
(file)
--- a/
test-server/test-server-status.c
+++ b/
test-server/test-server-status.c
@@
-57,7
+57,11
@@
update_status(struct lws *wsi, struct per_session_data__lws_status *pss)
#endif
strcpy(date, "unknown");
else
+#ifdef WIN32
+ strftime(date, sizeof(date), "%Y %H:%M %Z", ptm);
+#else
strftime(date, sizeof(date), "%F %H:%M %Z", ptm);
+#endif
if ((p - start) > (sizeof(cache) - 512))
break;
if (subsequent)