1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

win32 needs strange strftime args

This commit is contained in:
Meir Yanovich 2016-04-05 19:15:34 +08:00 committed by Andy Green
parent a19ff9b24d
commit d5ff4bf1bc

View file

@ -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)