axis-java-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/AXIS2-4152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652271#action_12652271
] 

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 

2008-12-01T10:00:00.000+9:30

but the same time you are now representing as 

2008-12-01T11:00:00.000+9:30

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: https://issues.apache.org/jira/browse/AXIS2-4152
>             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 ( http://www.w3.org/TR/timezone/#d2e226
) 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message