[SERVER-8573] Make Date_t::millis signed Created: 14/Feb/13  Updated: 10/Jun/15  Resolved: 13/May/15

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Shaun Verch Assignee: Andy Schwerin
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by TOOLS-83 Mongoexport to CSV fails for dates be... Closed
Duplicate
duplicates SERVER-13874 Improve handling of dates, times, and... Closed
Related
related to SERVER-8330 mongoimport (v2.3.2) bug with dates b... Closed
related to SERVER-8559 Make Date_t::toString handle dates be... Closed
Operating System: ALL
Participants:

 Description   

Date_t::millis value is unsigned, but some of our external interfaces and docs use signed values. There are currently TODOs in the code to make this change.

Here's one example:

> d = new Date(-1)
ISODate("1969-12-31T23:59:59.999Z")
> d.getTime()
-1
> db.dates.insert({ "date" : d })
> db.dates.findOne().date.getTime()
-1
> 



 Comments   
Comment by Andy Schwerin [ 13/May/15 ]

Subsumed by SERVER-13874.

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