[
https://issues.apache.org/jira/browse/ABDERA-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
NIcolas Maisonneuve updated ABDERA-44:
--------------------------------------
According the simpleDateFormat Javadoc
z Time zone General time zone Pacific Standard Time; PST;
GMT-08:00
Z Time zone RFC 822 time zone -0800
so it works if I add GMT
Date date=AtomDate.parse("2005-12-12T12:12:12+04:00");
System.out.println(date);
date=AtomDate.parse("2005-12-12T12:12:12GMT+04:00");
System.out.println(date);
Mon Dec 12 01:00:00 CET 2005
Mon Dec 12 09:12:12 CET 2005
> Date with TimeZone doesn't work (ex: 2005-12-11T10:10:10+01:00)
> ---------------------------------------------------------------
>
> Key: ABDERA-44
> URL: https://issues.apache.org/jira/browse/ABDERA-44
> Project: Abdera
> Issue Type: Bug
> Environment: JDK 6, windows XP
> Reporter: NIcolas Maisonneuve
>
> AtomDate.java handles only this pattern
> 2005-12-11T10:10:10Z
> but not this kind of pattern
> 2005-12-11T10:10:10+01:00
> (wrong date generated)
> date=AtomDate.parse("2005-12-12T12:12:12+01:00");
> System.out.println(date);
> -->
> Mon Dec 12 01:00:00 CET 2005
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.