Skip to content

Fixes GMT bug

Latest
Compare
Choose a tag to compare
@jakeyr jakeyr released this 15 Feb 23:31
· 993 commits to master since this release
Fix HTTP date timezone bug

  * SimpleDateFormatter stores time zone internally. Since the formatter
    is stored in a thread local and used to parse dates provided by the
    client (e.g. parse(If-Modified-Since)), this object can be set 
    to return ‘Date’ headers in the wrong time zone and become non-
    compliant with the HTTP spec. This fix ensures that the dates 
    formatted for use in HTTP by this server will always be GMT.