axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sanjaya Karunasena <sanja...@yahoo.com>
Subject Re: [Axis2] Representing a Birthday in a distributed scenario
Date Tue, 08 Jul 2008 17:28:23 GMT
Joda time key concepts can be easily mapped to XSD Date and Time data types.

http://www.w3schools.com/Schema/schema_dtypes_date.asp

http://joda-time.sourceforge.net/key_instant.html
http://joda-time.sourceforge.net/key_partial.html
http://joda-time.sourceforge.net/key_chronology.html
http://joda-time.sourceforge.net/key_duration.html 

/Sanjaya



----- Original Message ----
From: Sanjaya Karunasena <sanjayak@yahoo.com>
To: Axis Dev <axis-dev@ws.apache.org>
Sent: Tuesday, July 8, 2008 2:17:50 PM
Subject: Representing a Birthday in a distributed scenario


Hi All,

Usually to represent some thing like a Birthday java Date class is used. However, it internally
make use of a Calendar instance in most of the operations.
This means unless we send timezone information in a Web Service request with the birthday,
there is a time window, when the client and the server is in two different timezones, the
day get represented inaccurately.

I came across this library (http://joda-time.sourceforge.net) which doesn't suffer from such
design flaws. (http://joda-time.sourceforge.net/key_partial.html)

Thoughts? Probably we need to fix ADB to handle this.

/Sanjaya


      
Mime
View raw message