win32 needs strange strftime args

This commit is contained in:
Meir Yanovich 2016-04-05 19:51:25 +08:00 committed by Andy Green
parent b1f80eeeb7
commit ec81fd460b

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)