axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lee Surprenant (JIRA)" <>
Subject [jira] Created: (AXIS2-1863) problem with org.apache.axis2.databinding.utils.ConverterUtil.convertTodateTime(String content)
Date Tue, 12 Dec 2006 14:30:21 GMT
problem with org.apache.axis2.databinding.utils.ConverterUtil.convertTodateTime(String content)

                 Key: AXIS2-1863
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: databinding
    Affects Versions: 1.0, 1.1
         Environment: winXP
            Reporter: Lee Surprenant

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:
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.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


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

View raw message