XSDateTime#getXMLGregorianCalendar() incorrectly reports no time zone as time 
zone "Z".
---------------------------------------------------------------------------------------

                 Key: XERCESJ-1364
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1364
             Project: Xerces2-J
          Issue Type: Bug
          Components: XML Schema API
    Affects Versions: 2.9.1
         Environment: Linux.
            Reporter: Chris Simmons
            Priority: Minor


I got an instance of XSDateTime (which you would normally get through PSVI DOM).

I was expecting to be able to use the 
javax.xml.datatype.XMLGregorianCalendar.compare(XMLGregorianCalendar) to 
determine if dates are comparable as per the spec, but it goes wrong.  This 
appears to be because the result of 
org.apache.xerces.xs.datatypes.XSDateTime.getXMLGregorianCalendar() doesn't 
reflect whether the time zone was actually specified.

See http://www.w3.org/TR/xmlschema-2/#dateTime-order

I'll attach a test case shortly.

-- 
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]

Reply via email to