Greetings,

Based on my reading of the spec, DataHelperImpl.toDateTime(Calendar) should 
return a String compatible with the XML Schema dateTime. Consider the code 
snippet below:

import commonj.sdo.helper.DataHelper;

System.out.println(DataHelper.INSTANCE.toDateTime(DataHelper.INSTANCE.toCalendar("2007-01-01T00:00:00.200Z"))

This snippet prints the result:
(java.lang.String) 2007-01-01T00:00:00.200 GMT 

instead of 
(java.lang.String) 2007-01-01T00:00:00.200Z

The GMT suffix seems incorrect to me. The following code supports this 
assertion by throwing an IllegalArgumentException when it encounters the " GMT" 
suffix generated by the DataHelper.toDateTime() method.

import javax.xml.datatype.DatatypeFactory;

DatatypeFactory.newInstance().newXMLGregorianCalendar("2007-01-01T00:00:00.200 
GMT");

Do you agree this is a bug? If so, I'll be glad to open a JIRA.

- Ron

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to