[JAVA-2024] JsonReader handles `Date()` incorrectly Created: 29/Oct/15  Updated: 07/Dec/15  Resolved: 02/Nov/15

Status: Closed
Project: Java Driver
Component/s: BSON
Affects Version/s: 3.2.0
Fix Version/s: 3.2.0

Type: Bug Priority: Major - P3
Reporter: Ross Lawley Assignee: Ross Lawley
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to JAVA-2022 JsonReader does not accept ISODate() Closed
Backwards Compatibility: Minor Change

 Description   

JsonReader treats Date() and new Date() the same, but in the shell the return different things:

Date() returns a string eg: "Thu Oct 29 2015 14:46:13 GMT+0000 (GMT)"
new Date() returns a date object eg: ISODate("2015-10-29T14:47:08.857Z")



 Comments   
Comment by Jeffrey Yemin [ 07/Dec/15 ]

The 3.2.0 driver, which contains a fix for this issue, has been released today.

Comment by Githook User [ 02/Nov/15 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Fix JsonReader parsing of "Date()"

JAVA-2024
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/dc302bd56aa76cf714138630b974f8443b47d0b5

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