Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: JiBX 1.2.2
-
Fix Version/s: None
-
Component/s: core
-
Labels:None
-
Number of attachments :
Description
I would suggest that serializeZonedDateTime needs to be made consistent for all offsets.
Currently, an offset of 0 will result in exactly the same output as serializeUTCDateTime
DateTime dt = new DateTime().withZone(DateTimeZone.forOffsetHours(0)); System.out.println(JodaConvert.serializeUTCDateTime(dt)); System.out.println(JodaConvert.serializeZonedDateTime(dt));
this will result in
2010-04-16T09:26:40.42Z 2010-04-16T09:26:40.42Z
where I would have thought it should result in.
2010-04-16T09:26:40.42Z 2010-04-16T09:26:40.42+00:00
Sorry, raised as "Major" by accident, but it is obviously not.