[JAVA-4835] Native support for java.time API Created: 06/Jan/23  Updated: 10/Jan/23

Status: Backlog
Project: Java Driver
Component/s: Codecs
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: Ashni Mehta Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to JAVA-1299 Support JSR-310 Dates Closed

 Description   

This feature request was raised by a user on Community Forums. Copying the request below.

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:

  1. LocalDate - A date, with no time nor zone-offset
  2. LocalTime - A time, with no date nor zone-offset
  3. LocalDateTime - A date-time, with no zone-offset
  4. OffsetTime - A time and zone-offset, with no date
  5. OffsetDateTime - A date-time and zone-offset
  6. ZonedDateTime - A date-time, zone-offset and time-zone
  7. ZoneOffset - An offset from the time in UTC/GMT
  8. ZoneId - A time-zone identifier, used to find the underlying rules


 Comments   
Comment by Ross Lawley [ 10/Jan/23 ]

Note from JAVA-1299:

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.

Comment by Debabrata Patnaik [ 07/Jan/23 ]

JAVA TIME MODULE MUST HAVE NATIVE SUPPORT IN MONGODB.

Generated at Thu Feb 08 09:03:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.