Summary: | Tomcat 9 can return HTTP date headers in timzone other than GMT | ||
---|---|---|---|
Product: | Tomcat 9 | Reporter: | Gary Thomas <gazzyt> |
Component: | Util | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | regression | ||
Priority: | P2 | ||
Version: | 9.0.27 | ||
Target Milestone: | ----- | ||
Hardware: | PC | ||
OS: | All |
Description
Gary Thomas
2020-03-13 11:55:44 UTC
Added pull request https://github.com/apache/tomcat/pull/262 containing test and fix for this issue. Yet another wonderful feature of SimpleDateFormat. I had no idea that parsing a date string could poison the time zone of a SimpleDateFormat object. I thought it would be simpler to reset the timezone after parsing a date. Will change it if it's not a good idea. Thanks for the patch. The fix will be in 10.0.0-M4, 9.0.34, 8.5.54 and 7.0.104. |