-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 2.7.2
-
Component/s: JavaScript
-
Fully Compatible
-
ALL
-
-
Server 2.7.4, Server 2.7.5
The ObjectId.fromDate fails for dates less than (Math.pow(2,28) - 1).
The code on line 379 should look something like :
var pad = "00000000"; var hexSeconds = seconds.toString(16); hexSeconds = pad.substring(0, pad.length - hexSeconds.length) + hexSeconds;
- is related to
-
SERVER-12007 add support for new ObjectId(Date|Number)
- Closed
- links to