You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Bobby Lawrence (JIRA)" <ax...@ws.apache.org> on 2005/04/04 16:10:33 UTC
[jira] Created: (AXIS-1907) Calendar De|Serializer with incorrect date format
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
[jira] Commented: (AXIS-1907) Calendar De|Serializer with incorrect date format
Posted by "Tom Jordahl (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1907?page=comments#action_62289 ]
Tom Jordahl commented on AXIS-1907:
-----------------------------------
Well, the absolute *time* reaches the server correctly, which is the important part. Since computers represent time generally in GMT anyway, the timezone is just for display purposes, so there is no 'correct' timezone.
> 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
[jira] Resolved: (AXIS-1907) Calendar De|Serializer with incorrect date format
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1907?page=all ]
Davanum Srinivas resolved AXIS-1907:
------------------------------------
Resolution: Won't Fix
See tom's comments.
-- dims
> 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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-1907) Calendar De|Serializer with incorrect date format
Posted by "Tom Jordahl (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1907?page=comments#action_62175 ]
Tom Jordahl commented on AXIS-1907:
-----------------------------------
Two things:
1. The "Z" is part of the specified ISO format for date/time stamps - it is a literal character and is correct. With no data following the Z, the time is defined to be GMT.
2. The Axis date/time serializer always sends dates and times in GMT (aka UTC). This is to avoid any interop problems with timezones. This is behaving as designed (and with proven interoperability). The recieving end generally converts times in to the desired timezone.
I don't think there is any bug here.
> 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
[jira] Commented: (AXIS-1907) Calendar De|Serializer with incorrect date format
Posted by "Bobby Lawrence (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1907?page=comments#action_62189 ]
Bobby Lawrence commented on AXIS-1907:
--------------------------------------
OK -
I guess the "Z" character is fine.
You stated that "the recieving end generally converts times in to the desired timezone."
How is this done? Surely not in the CalendarDeserializer...it will never know the correct timezone...only the one for the current locale.
> 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
[jira] Commented: (AXIS-1907) Calendar De|Serializer with incorrect date format
Posted by "Bobby Lawrence (JIRA)" <ax...@ws.apache.org>.
[ 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