Thank you very much, it did the trick.
TM
The problem you are facing is because dateTime is always sent in GMT
Timezone over the wire
Once you receive the dateTime in a java.util.Calendar, do:
calendar.setTimeZone(java.util.TimeZone.getDefault());
That should give 12:38 back to u.
Ashutosh
-----Original Message-----
From: Tomek Minkowski [mailto:[EMAIL PROTECTED]
Sent: Monday, February 07, 2005 5:24 PM
To: [EMAIL PROTECTED]
Subject: Calendar serialization
I have to serilaize some dates, and have problem with HOURS.
When it's 12.38.20, and inside java platform it IS 12.38.20, my
serialized date is:
<until xsi:type="xsd:dateTime">2005-02-07T11:38:20.500Z</until>
What's interesting: the server (created by me) sends me over
events concerning 12:38 (time in the db) as well wrapping it up with
axis
as 11:38. I wouldn't care much what's in the SOAP, but another
deserialization at client gets me 11:38. So the events are proper, but
dates are changed. The timezones of server and client are both the same.
Pozdrawiam,
Tomasz Minkowski, Ce3