[
https://issues.apache.org/jira/browse/AXIS2-1863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Amila Chinthaka Suriarachchi resolved AXIS2-1863.
-------------------------------------------------
Resolution: Fixed
fixed with revision 508309.
parse the date with the available simpleDateFormat functionalites.
> problem with
> org.apache.axis2.databinding.utils.ConverterUtil.convertTodateTime(String
> content)
> -----------------------------------------------------------------------------------------------
>
> Key: AXIS2-1863
> URL: https://issues.apache.org/jira/browse/AXIS2-1863
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: databinding
> Affects Versions: 1.1, 1.0
> Environment: winXP
> Reporter: Lee Surprenant
> Assigned To: Amila Chinthaka Suriarachchi
>
> I am using the dateTime databinding for a simple java.util.Calendar. For
> instance, when I send the SOAP envelope, the Calendar instance is correctly
> converted to GMT and I have:
> <dateTime>2006-12-11T23:57:16.625Z</dateTime>
> However, on the other end, calling convertTodateTime() on this string returns
> a java.util.Calendar object which rerpresents 2006-12-12T4:57:16:625Z.
> This occurs due to the order of the following code:
> calendar = Calendar.getInstance();
> ...
> date = zulu.parse(source.substring(0,19) + ".000Z"); //date is set to Mon
> Dec 11 23:57:16 EST 2006
> ...
> calendar.setTimeZone(TimeZone.getTimeZone("GMT")); //calendar is set to GMT
> ...
> calendar.setTime(date); //calendar is incorrectly set to
> 2006-12-12T4:57:16:625Z
> The code has the comment "Note - We only follow the convention in the latest
> schema spec" but the functionality still doesn't seem correct.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]