murataydogdu / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

Serialization and parsing of DateTimeOffset and Time properties in Json is wrong #157

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Properties of type Edm.DateTimeOffset and Edm.Time are serialized as URI 
literals (i.e. with "datetimeoffset" and "time" prefix). According to section 
"Common JSON Serialization Rules for All EDM Constructs" (2.2.6.3.1) of the 
OData spec, they shall be serialized as shown by the following examples: 
"DateTimeOffsetProperty" : "\/Date(1146654123000+0420)\/", "TimeProperty" : 
"PT1H2M3S".

Original issue reported on code.google.com by philipp.sebastian.thun on 17 Apr 2012 at 10:58

GoogleCodeExporter commented 8 years ago
Fixed with revision 5d7a6907c144.

Original comment by philipp.sebastian.thun on 17 Apr 2012 at 10:59