[
https://issues.apache.org/jira/browse/OLINGO-1456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mahdi Ansari closed OLINGO-1456.
--------------------------------
Resolution: Fixed
> Olingo returns DateTime or Timestamp values in a wrong format
> -------------------------------------------------------------
>
> Key: OLINGO-1456
> URL: https://issues.apache.org/jira/browse/OLINGO-1456
> Project: Olingo
> Issue Type: Bug
> Components: odata2-jpa
> Affects Versions: V2 2.0.11
> Environment: windows, mysql, spring boot 2.3.0
> Reporter: Mahdi Ansari
> Priority: Major
>
> I made an odata service with Olingo2/JPA and spring-boot based on this GitHub
> repository([https://github.com/jpenninkhof/odata-boilerplate]).
> The problem is olingo does not return the date/time or timestamp columns in a
> correct format as defined in Odata standard (or maybe Microsoft standard). I
> mean my front-end library (i.e. OpenUI5) expects some value like
> `<d:ValidFrom>/Date(1579075200000)/</d:ValidFrom>` for `Edm.DateTime` column
> but what olingo returns is `<d:ValidFrom>2020-01-15T08:00:00</d:ValidFrom>`
> which is not accepted by OpenUI5!
> What is your suggestion?
> Is there a way that I force Olingo to return data/time or timestamp in the
> format that Microsoft defined or not? (i.e. `/Date(timestamp)/`)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)