You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ivan Aguirre <iv...@gmail.com> on 2004/11/09 17:02:12 UTC
Possible Problem with Calendar Serializer / Deserializer
Hello Folks.....
When I send a Calendar object throwght Axis Web Service it sends a
String in the form "yyyy-MM-dd'T'HH:mm:ss.SSS'Z". Without info about
timeZone (I verified it with TCPMonitor)..... The Calendar created on
server side (using the String sent) are two hours late. My server's
JVM has a diferente TimeZone.
If I set the timezone on the Calendar objects created in client side
to server TimeZone the server's Calendar objects are created with same
values for year, month, day, hour, ......
I took a look in the source code of CalendarSerializar.java and
CalendarDeserializer.java.
In the former it seems it should change the date value only if the
String arrived has info about TimeZone. But I verified by TCPMonitor
that this information doesn't exist....
What's happening ?????
Thankx in advance...
Ivan
Re: Possible Problem with Calendar Serializer / Deserializer
Posted by Dan Ciarniello <dc...@cityxpress.com>.
Ivan Aguirre wrote:
>Hello Folks.....
>
>When I send a Calendar object throwght Axis Web Service it sends a
>String in the form "yyyy-MM-dd'T'HH:mm:ss.SSS'Z". Without info about
>timeZone (I verified it with TCPMonitor)..... The Calendar created on
>server side (using the String sent) are two hours late. My server's
>JVM has a diferente TimeZone.
>
>
>
Actually, the timezone is sent. The Z at the end of the string tells
you that the string is the UTC dateTime. The apparent two hour
difference is likely the timezone difference between the client and the
server.