Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
1.3.0
-
None
Description
The $date format requires a string or a $numberLong, but the driver incorrectly parses integer literals like the following:
{"":{"$date":1}}
|
0f0000000900010000000000000000
|
|
|
{"":{"$date":-1}}
|
0f0000000900ffffffffffffffff00
|
N.B. floats do error:
{"":{"$date":1.23}}
|
unmarshal error: $date value should be string or object, but instead is double
|