-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Embedded Shell
-
None
-
3
-
Iteration Papaya
-
Not Needed
In Compass 1.22.1, Date and ISODate objects evaluate to {} in the embedded shell:
> foo = new Date("2020-10-07") < {} > foo.toJSON() < '2020-10-07T00:00:00.000Z' > typeof foo < 'object'
The expected result would be an ISO date similar to the toJSON() output. Example from standalone mongosh:
> foo = new Date("2020-10-07") 2020-10-07T00:00:00.000Z