You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by ra...@apache.org on 2021/01/22 07:00:11 UTC
[olingo-odata4] branch master updated: [OLINGO-1408]Convert
java.time.Instant to edm.DateTimeOffset in generic flow
This is an automated email from the ASF dual-hosted git repository.
ramyav pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/olingo-odata4.git
The following commit(s) were added to refs/heads/master by this push:
new dadeed6 [OLINGO-1408]Convert java.time.Instant to edm.DateTimeOffset in generic flow
dadeed6 is described below
commit dadeed6ef62a3ab5c4480ddf53966a4934b16465
Author: ramya vasanth <ra...@sap.com>
AuthorDate: Fri Jan 22 12:29:52 2021 +0530
[OLINGO-1408]Convert java.time.Instant to edm.DateTimeOffset in generic flow
---
.../src/main/java/org/apache/olingo/commons/core/edm/EdmTypeInfo.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/EdmTypeInfo.java b/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/EdmTypeInfo.java
index f886c84..e4df552 100644
--- a/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/EdmTypeInfo.java
+++ b/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/EdmTypeInfo.java
@@ -242,6 +242,7 @@ public class EdmTypeInfo {
return EdmPrimitiveTypeKind.Single;
} else if (value instanceof Calendar || value instanceof Date
|| value instanceof java.sql.Timestamp
+ || value instanceof java.time.Instant
|| value instanceof java.time.ZonedDateTime) {
return EdmPrimitiveTypeKind.DateTimeOffset;
} else if (value instanceof java.sql.Date || value instanceof java.time.LocalDate) {