What we produce for xsd:date conforms to the XSD spec, please see:
http://www.w3schools.com/Schema/schema_dtypes_date.asp
Thanks,
Raymond
From: Zoli Borsos
Sent: Monday, August 25, 2008 6:00 AM
To: [email protected]
Subject: xs:Date output not compliant with spec
Hello,
I have found some deviation from the XML spec. when I use
XMLHelper.INSTANCE.save.
The problem occurs when I want to print Date (xs:Date).
It looks e.g.: 2008-07-11 UTC
Instead of: 2008-07-11Z.
Can anybody confirm if this is a bug?
I debugged the source code and found a pattern at line 453:
SDOSimpleDateFormat f = new SDOSimpleDateFormat("yyyy-MM-dd zz");
in the method:
public synchronized String toYearMonthDay(Date date)
I also found similar patterns in other methods too.
The can be bugs too?
If they are bugs open please a Jira issue!
Thanks and
Best Regards
Zoltan