ancruna / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

HTTP last-modified headers are in localtime rather than GMT (UTC) #269

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
RFC 2616 states that HTTP date/times in headers should always be in UTC.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3

Currently the code here: 
http://code.google.com/p/mongoose/source/browse/mongoose.c#2547 outputs the 
last-modified header using the local timezone, rather than GMT.
The recipient then assumes that the date is GMT, and makes the necessary 
adjustments.

In my case, at GMT+1 (BST), a file modified at the current date, is 
(effectively) declared to have been last modified one hour in the future by 
Mongoose, which plays havoc with tools like make.
To test, do the above, open said file in browser or download, and check 
modification date. (I used wget and firefox for said test).

Original issue reported on code.google.com by j.g.renn...@gmail.com on 25 Jul 2011 at 4:29

GoogleCodeExporter commented 9 years ago
Submitted 
http://code.google.com/p/mongoose/source/detail?r=983c674b7cfc5dfd107642112db06f
8e61b221a2
Thanks.

Original comment by valenok on 25 Jul 2011 at 11:40