Details
-
Type: Improvement
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.1
-
Component/s: None
-
Labels:None
Description
ISO 8601 formats cannot be parsed using the current SimpleDateFormat solution used in the standard DateConverter.
ISO 8601 is the standard format for dates represented in XML (when declared in an XSD as a datetime), so this is fairly important. In fact, it is required if communicating with other "strict" XML-based systems.
The "jigsaw" webserver by W3C.org contains a class with static methods to parse and create ISO8601 dates (org.w3c.util.DateParser). This was easy to include into the XStream codebase - I have it working locally on my machine, but this needs to be properly integrated into XStream.
I think it's just a matter of adding a new dateformat: "yyyy-MM-dd'T'HH:mm:ss"
Does that sound right?