Can there be native support to ZonedDateTime in MongoDB java Driver sync. Seems it only have LocalDateTime implemented as part of JSR310
Supported classes are The high level API contains the following key classes:
LocalDate - A date, with no time nor zone-offset
LocalTime - A time, with no date nor zone-offset
LocalDateTime - A date-time, with no zone-offset
OffsetTime - A time and zone-offset, with no date
OffsetDateTime - A date-time and zone-offset
ZonedDateTime - A date-time, zone-offset and time-zone
ZoneOffset - An offset from the time in UTC/GMT
ZoneId - A time-zone identifier, used to find the underlying rules
From Mongodb team on the issue
Users wanting alternative data structures and / or more flexibility regarding JSR-310 dates should check out the alternative JSR-310 codecs provider by cbartosiak: bson-codecs-jsr310.
Kogito only registers default mongodb codec and mongo team informed to use the existing codec implementation of jsr310 with https://github.com/cbartosiak/bson-codecs-jsr310
can this be integrated in kogito mongodb integrationn,
Implementation ideas
add codec registration with jsr310codecmongodb into the default mongodb codec in kogito
Description
Can there be native support to ZonedDateTime in MongoDB java Driver sync. Seems it only have LocalDateTime implemented as part of JSR310 Supported classes are The high level API contains the following key classes:
LocalDate - A date, with no time nor zone-offset LocalTime - A time, with no date nor zone-offset LocalDateTime - A date-time, with no zone-offset OffsetTime - A time and zone-offset, with no date OffsetDateTime - A date-time and zone-offset ZonedDateTime - A date-time, zone-offset and time-zone ZoneOffset - An offset from the time in UTC/GMT ZoneId - A time-zone identifier, used to find the underlying rules
Also need update to mongodb persistance apis for the same https://jira.mongodb.org/browse/JAVA-4835
From Mongodb team on the issue Users wanting alternative data structures and / or more flexibility regarding JSR-310 dates should check out the alternative JSR-310 codecs provider by cbartosiak: bson-codecs-jsr310.
Kogito only registers default mongodb codec and mongo team informed to use the existing codec implementation of jsr310 with https://github.com/cbartosiak/bson-codecs-jsr310 can this be integrated in kogito mongodb integrationn,
Implementation ideas
add codec registration with jsr310codecmongodb into the default mongodb codec in kogito