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:
parent
a19ff9b24d
commit
d5ff4bf1bc
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue