[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;
|
return EdmPrimitiveTypeKind.Single;
|
||||||
} else if (value instanceof Calendar || value instanceof Date
|
} else if (value instanceof Calendar || value instanceof Date
|
||||||
|| value instanceof java.sql.Timestamp
|
|| value instanceof java.sql.Timestamp
|
||||||
|
|| value instanceof java.time.Instant
|
||||||
|| value instanceof java.time.ZonedDateTime) {
|
|| value instanceof java.time.ZonedDateTime) {
|
||||||
return EdmPrimitiveTypeKind.DateTimeOffset;
|
return EdmPrimitiveTypeKind.DateTimeOffset;
|
||||||
} else if (value instanceof java.sql.Date || value instanceof java.time.LocalDate) {
|
} else if (value instanceof java.sql.Date || value instanceof java.time.LocalDate) {
|
||||||
|
|
Loading…
Reference in New Issue