Support for ZonedDateTime with MongoDB using Codec for Java

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

Thanks for letting us know about your feature request for native support of ZonedDateTime.

While we don’t have this on our roadmap currently, I’ve added it to the JAVA project so that we can gauge popularity and interest. Feel free to upvote it here, and to add any additional information about your specific use case.

Fatal error : Uncaught MongoDB\Driver\Exception\ConnectionTimeoutException: No suitable servers found (serverSelectionTryOnce set): [Failed to receive length header from server. calling hello on ‘cluster0-shard-00-02.sw31d.mongodb.net:27017’] [Failed to receive length header from server. calling hello on ‘cluster0-shard-00-00.sw31d.mongodb.net:27017’] [Failed to receive length header from server. calling hello on ‘cluster0-shard-00-01.sw31d.mongodb.net:27017’] in C:\xampp\htdocs\php_mongdb\vendor\mongodb\mongodb\src\functions.php:520 Stack trace: #0 C:\xampp\htdocs\php_mongdb\vendor\mongodb\mongodb\src\functions.php(520): MongoDB\Driver\Manager->selectServer(Object(MongoDB\Driver\ReadPreference)) #1 C:\xampp\htdocs\php_mongdb\vendor\mongodb\mongodb\src\Collection.php(932): MongoDB\select_server(Object(MongoDB\Driver\Manager), Array) #2 C:\xampp\htdocs\php_mongdb\index.php(14): MongoDB\Collection->insertOne(Array) #3 {main} thrown in C:\xampp\htdocs\php_mongdb\vendor\mongodb\mongodb\src\functions.php on line 520

how can i fix this