Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.4.7
-
Fix Version/s: 1.4.8
-
Component/s: Converters
-
Labels:None
Description
I think XStream should be able to parse standard XML dates as well, although the have a rather strange format
See http://www.w3.org/TR/NOTE-datetime
Examples:
1994-11-05T08:15:30-05:00
1994-11-05T13:15:30Z
Deserialization support by default added in trunk, but it requires at least a Java 7 runtime. Earlier Java runtime versions do not understand the 'X' in the format pattern that supports the 'Z' suffix for UTC dates.
The ISO8601DateConverter can already be used as alternative though working also for older Java runtime versions.