[ 
https://issues.apache.org/jira/browse/OLINGO-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13976713#comment-13976713
 ] 

Stephan Klevenz commented on OLINGO-247:
----------------------------------------

Have a look at [1] and [2] to get Olingos implementation about handling of date 
time values.

In general Olingo normalize datetime values to GMT as default. There is one 
exception for EdmDateTimeOffset which uses servers default for toString() 
operation. See comment at [2], line 136. This is a by design implementation.

Does that explain the behavior of Olingo date time handling?

[1] 
https://git-wip-us.apache.org/repos/asf?p=olingo-odata2.git;a=blob;f=odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/edm/EdmDateTime.java;h=e33d2175023ae6bdaffac9698a1dd06af4e0002f;hb=HEAD
[2] 
https://git-wip-us.apache.org/repos/asf?p=olingo-odata2.git;a=blob;f=odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/edm/EdmDateTimeOffset.java;h=6c01ac0ba395afd63d136521468000e560d1884f;hb=HEAD

> Date Time and Time Zone Issue
> -----------------------------
>
>                 Key: OLINGO-247
>                 URL: https://issues.apache.org/jira/browse/OLINGO-247
>             Project: Olingo
>          Issue Type: Question
>          Components: odata4-server
>    Affects Versions: V2 1.2.0
>            Reporter: Selvaratnam Ruckman Colins
>            Assignee: Chandan V.A
>            Priority: Blocker
>
> I am using MySql data base to store Odata information,One of my table has 
> date column with value as "2013-04-02" and In my JPA entity I map this column 
> to Java Calender as follow
> @Column(name = "date",columnDefinition="DATE")
> @Temporal(TemporalType.DATE)
> private Calendar tradingDate
> But when i fetch these entities using Odata the date comes as
> <d:TradingDate>2013-04-01T18:30:00</d:TradingDate>
> In fact All dates in the table come with some reduction value which may be 
> Time Zone offset & My local time zone is IST(+5.30)
> I think the date is been converted to GMT or UTC by olingo, How do i resolve 
> this issue?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to