mirror of
https://git.zx2c4.com/cgit
synced 2024-11-25 18:08:41 +00:00
Nov is the correct abbreviation
This commit is contained in:
parent
9735835c0e
commit
e34a3b5adc
@ -20,7 +20,7 @@ static char *http_date(time_t t)
|
|||||||
{"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
|
{"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
|
||||||
static char month[][4] =
|
static char month[][4] =
|
||||||
{"Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
{"Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
||||||
"Jul", "Aug", "Sep", "Oct", "Now", "Dec"};
|
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
|
||||||
struct tm *tm = gmtime(&t);
|
struct tm *tm = gmtime(&t);
|
||||||
return fmt("%s, %02d %s %04d %02d:%02d:%02d GMT", day[tm->tm_wday],
|
return fmt("%s, %02d %s %04d %02d:%02d:%02d GMT", day[tm->tm_wday],
|
||||||
tm->tm_mday, month[tm->tm_mon], 1900+tm->tm_year,
|
tm->tm_mday, month[tm->tm_mon], 1900+tm->tm_year,
|
||||||
|
Loading…
Reference in New Issue
Block a user