Problem Description
When inserting data using the $date operator, if the date is bellow a certain threshold there are some divergences in the value recorded.
Steps to Reproduce
Open Atlas
Create a document with date "1400-01-01 00:00:00"
{ "valid_date": { "$date": "1400-01-01T00:00:00" }}
|
Compass will save the document with the following values. Please see the minutes added.
{ "_id": { "$oid": "5ffdf6ca652224f556bc2ecf" },
|
"valid_date": { "$date": "1400-01-01T05:17:32.000Z" } }
|
Expected Results
We expect the results to be a precise minute instead (still respecting the timezone in the test case -5GMT)
Actual Results
It is adding 17 minutes 32 seconds to the date
Additional Notes
mongo shell keep the same date, it might be driver related.
|