You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2005/04/21 16:45:07 UTC

DO NOT REPLY [Bug 34556] - Date errors in many test

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34556>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34556





------- Additional Comments From olegk@apache.org  2005-04-21 16:45 -------
DateFormat dateformat = new SimpleDateFormat("EEE, dd-MMM-yyyy HH:mm:ss zzz");
dateformat.setTimeZone(TimeZone.getTimeZone("GMT"));
Date date = dateformat.parse("Fri, 01-Jan-2070 00:00:10 GMT");
System.out.println(dateformat.format(date));

>> Wed, 01-Jan-2070 00:00:10 GMT

Java does not seem to mind. I do not see why we should

Oleg

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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