mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
%Z gives UTC. Apache uses GMT instead, and wget complains about an
invalid header when it sees UTC, so switch.
This commit is contained in:
parent
14d0ca9ac7
commit
b86889f027
|
@ -1276,7 +1276,7 @@ static char *rfc1123_date(char *dest, const time_t when)
|
||||||
{
|
{
|
||||||
time_t now = when;
|
time_t now = when;
|
||||||
if (strftime(dest, DATE_LEN,
|
if (strftime(dest, DATE_LEN,
|
||||||
"%a, %d %b %Y %H:%M:%S %Z", gmtime(&now) ) == 0)
|
"%a, %d %b %Y %H:%M:%S GMT", gmtime(&now) ) == 0)
|
||||||
errx(1, "strftime() failed [%s]", dest);
|
errx(1, "strftime() failed [%s]", dest);
|
||||||
return dest;
|
return dest;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user