axis-java-dev mailing list archives

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

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

Gavin Pearce commented on AXIS2-4152:
-------------------------------------

I am expecting to see - c) 2008-12-01T11:00:00.000+9:30

I have included an excerpt from the URL mentioned in the description to explain why I think
c) is the appropriate answer.

"What is a "zone offset"? A zone offset is the difference in hours and minutes between a particular
time zone and UTC. In ISO 8601, the particular zone offset can be indicated in a date or time
value. The zone offset can be Z for UTC or it can be a value "+" or "-" from UTC. For example,
the value 08:00-08:00 represents 8:00 AM in a time zone 8 hours behind UTC, which is the equivalent
of 16:00Z (8:00 plus eight hours). The value 08:00+08:00 represents the opposite increment,
or midnight (08:00 minus eight hours). "

> 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