tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Possible bug in Tomcat Date header handling
Date Fri, 26 Aug 2011 16:40:55 GMT
2011/8/26 Mick Sear <mick.sear@succeed.co.uk>:
> I also think that looking at this code, if clocks go back at, say, 2am in
> a given time zone, Tomcat will report 2am in an HTTP header continually
> for 1 hour.
>
> Am I wrong?

The header is in GMT. It does not matter what timezone your OS uses.

[[[
    static {

        format.setTimeZone(gmtZone);

        formats[0].setTimeZone(gmtZone);
        formats[1].setTimeZone(gmtZone);
        formats[2].setTimeZone(gmtZone);

    }
]]]

> wget.exe --save-headers http://localhost:8080/

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=ISO-8859-1
Date: Fri, 26 Aug 2011 16:40:02 GMT
Connection: close

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message