axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <>
Subject [jira] Commented: (AXIS2-4152) ConverterUtil.convertToString(Calendar) returns timezone instead of zone offset
Date Tue, 02 Dec 2008 04:49:44 GMT


Amila Chinthaka Suriarachchi commented on AXIS2-4152:

The time zone offset value is actually equal to ==> Zone offset + DST

So the answer is either a) or b)

A timestamp value ( eg . 2008-12-01T10:00:00.000+9:30 ) represents a millisecond value which
is time zone independent. (Date.getTime method returns this value)

Think that Adelaide does not have Day light savings. Then your time is 10.00 and according
to the way you have mentioned it should be represented as 


but the same time you are now representing as 


These two time stamps shows clearly two times and that is wrong.

> ConverterUtil.convertToString(Calendar) returns timezone instead of zone offset
> -------------------------------------------------------------------------------
>                 Key: AXIS2-4152
>                 URL:
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.4.1
>         Environment: Axis 2, Weblogic, java 1.4.2
>            Reporter: Gavin Pearce
> According to my interpretation of the XML Schema spec (
) the zone offset should be returned as part of the date component instead of the timezone.
 This affects regions that have daylight saving time in effect.  In Adelaide we have daylight
saving during the summer period and the value returned from convertToString becomes 2008-11-28T11:01:54.232+10:30
during that period whereas it should remain at 2008-11-28T11:01:54.232+09:30
> This code was changed between release 1.4.0 and 1.4.1.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message