[OLINGO-1408]Convert java.time.Instant to edm.DateTimeOffset in generic flow
This commit is contained in:
parent
a6ccb3d5a4
commit
dadeed6ef6
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue