%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:
Emil Mikulic 2006-12-13 11:53:13 +00:00
parent 14d0ca9ac7
commit b86889f027

View File

@ -1276,7 +1276,7 @@ static char *rfc1123_date(char *dest, const time_t when)
{
time_t now = when;
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);
return dest;
}