Index: /home/oleg/src/apache.org/jakarta-commons/httpclient-trunk/src/java/org/apache/commons/httpclient/util/DateUtil.java =================================================================== --- /home/oleg/src/apache.org/jakarta-commons/httpclient-trunk/src/java/org/apache/commons/httpclient/util/DateUtil.java (revision 161942) +++ /home/oleg/src/apache.org/jakarta-commons/httpclient-trunk/src/java/org/apache/commons/httpclient/util/DateUtil.java (working copy) @@ -82,6 +82,8 @@ DEFAULT_TWO_DIGIT_YEAR_START = calendar.getTime(); } + private static final TimeZone GMT = TimeZone.getTimeZone("GMT"); + /** * Parses a date value. The formats used for parsing the date value are retrieved from * the default http params. @@ -203,6 +205,7 @@ if (pattern == null) throw new IllegalArgumentException("pattern is null"); SimpleDateFormat formatter = new SimpleDateFormat(pattern); + formatter.setTimeZone(GMT); return formatter.format(date); }