Skip to content

Unable to get correct format for date with Odata 2.0 service #953

Open
@avaud

Description

@avaud

Hello,

We're trying to implement a client for an odata service using 2.0 version of odata.

From official spec we can see that format should be:
datetime’yyyy-mm-ddThh:mm[:ss[.fffffff]]‘ (keyword "datetime" and no timezone)

http://www.odata.org/documentation/odata-version-2-0/atom-format
http://www.odata.org/documentation/odata-version-2-0/overview

However, we can not make restlet to use the correct format,
From the code we can see that it uses the format defined in field dateTimeFormats of TypeUtils (org.restlet.ext.odata.internal.edm) which is "yyyy-MM-dd'T'HH:mm:ssz".

This is valid for the 3.0 version of odata but not in 2.0.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions