axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bobby Lawrence (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-1907) Calendar De|Serializer with incorrect date format
Date Tue, 05 Apr 2005 13:58:25 GMT
     [ http://issues.apache.org/jira/browse/AXIS-1907?page=comments#action_62172 ]
     
Bobby Lawrence commented on AXIS-1907:
--------------------------------------

I'm also confused as to why the CalendarDeserializer has to do a lot of parsing of the String
to determine the milliseconds and the timezone.
It should only have to do a zulu.parse(source).
Also - why does it explicitly set the timezone to GMT in both the CalendarSerializer and CalendarDeserializer?
 Wouldn't this screw up the timezone info?

> Calendar De|Serializer with incorrect date format
> -------------------------------------------------
>
>          Key: AXIS-1907
>          URL: http://issues.apache.org/jira/browse/AXIS-1907
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>  Environment: Windows XP Pro, Java 1.4.2, Axis 1.2RC3
>     Reporter: Bobby Lawrence

>
> The CalendarSerializer and CalendarDeserializer are supposed to know how to convert betweeb
date/time strings and java.util.Calendar objects.
> The problem is, it will never know how to convert the timezone information because of
the incorrect format in its private static SimpleDateFormat object.
> The format is given as:
> yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
> As you can clearly see, the letter Z is single quoted and therefore will pass through
as a literal 'Z' instead of timezone information like -007 or something.
> This same format is in both the serializer and deserializer classes and everytime Axis
serializes my objects into XML, it places a 'Z' character instead of the timezone.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message