[OLINGO-1408]Convert java.time.Instant to edm.DateTimeOffset in generic flow

This commit is contained in:
ramya vasanth 2021-01-22 12:29:52 +05:30
parent a6ccb3d5a4
commit dadeed6ef6
1 changed files with 1 additions and 0 deletions

View File

@ -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) {