abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "NIcolas Maisonneuve (JIRA)" <j...@apache.org>
Subject [jira] Updated: (ABDERA-44) Date with TimeZone doesn't work (ex: 2005-12-11T10:10:10+01:00)
Date Thu, 19 Apr 2007 05:55:15 GMT

     [ https://issues.apache.org/jira/browse/ABDERA-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

NIcolas Maisonneuve updated ABDERA-44:
--------------------------------------

    Environment: JDK 6, windows XP

here are the mask defined in the AtomDate.java 

 private static final String[] masks = {
    "yyyy-MM-dd'T'HH:mm:ss.SSSz",
    "yyyy-MM-dd't'HH:mm:ss.SSSz",                         // invalid
    "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
    "yyyy-MM-dd't'HH:mm:ss.SSS'z'",                       // invalid
    "yyyy-MM-dd'T'HH:mm:ssz",
    "yyyy-MM-dd't'HH:mm:ssz",                             // invalid
    "yyyy-MM-dd'T'HH:mm:ss'Z'",
    "yyyy-MM-dd't'HH:mm:ss'z'",                           // invalid
    "yyyy-MM-dd'T'HH:mmz",                                // invalid
    "yyyy-MM-dd't'HH:mmz",                                // invalid
    "yyyy-MM-dd'T'HH:mm'Z'",                              // invalid
    "yyyy-MM-dd't'HH:mm'z'",                              // invalid
    "yyyy-MM-dd",
    "yyyy-MM",
    "yyyy"
  };

no mask about timezone


> 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.


Mime
View raw message