axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Serializing dates using the local timezone to improve interoperability
Date Fri, 07 May 2004 12:26:57 GMT

At the moment Axis canonicalises all dates to the UTC timezone in SOAP
messages.  In and of itself this is of course perfectly correct, and you
would expect it to simplify things.  However for us it is having the
inverse effect -- you see for the years 1969 to 1972 both Ireland and
Britain (and possibly other parts of Europe) maintained daylight saving
time throughout the year instead of just in summer.  The TimeZone class in
JDK 1.4.x correctly handles this historical change, so the date "1st March
1969 00:00:00 BST" is correctly serialized to "1969-02-28T23:00:00Z".  The
problem is that JDK 1.3.x does not maintain historical data, so it
incorrectly deserializes this to "28th February 1969, 23:00:00 GMT".

If the times were sent in the local timezone there would be less chance of
triggering bugs like this in "broken" client implementations -- that is to
say all JDK 1.3, JDK 1.2 and JDK 1.1 clients!


The information contained in this e-mail is confidential and
may be privileged. It  is intended only for the addressee(s)
stated above. If you are not an addressee, any use,
dissemination, distribution, publication, or copying
of the information contained in this e-mail
is strictly prohibited.

Friends First Life Assurance Company Ltd is regulated
by the Irish Financial Services Regulatory Authority. 

If you have received this e-mail in error, please immediately
notify us by telephone at 353-1-6610600 or e-mail and delete the e-mail
from your system.

Thank you for your co-operation.
Friends First  Group, Cherrywood Business Park , Loughlinstown
Dublin 18.

View raw message