[SERVER-11273] Make Date_t support times before the epoch Created: 18/Oct/13  Updated: 15/Aug/17  Resolved: 15/Aug/17

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: Derick Rethans
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-12816 Support dates before 1970 on Windows Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 13 (04/22/16), Query 2017-08-21
Participants:

 Description   

Not all of our supported platforms guarantee support of times before the epoch. We need cross platform solution.

Specifically, certain versions of Visual Studio do not support negative values of time_t. We depend on OS libraries for converting time_t to and from strings, via struct tm (gmtime, e.g.).



 Comments   
Comment by Asya Kamsky [ 02/Aug/17 ]

Let's reopen, add to TZ project and mark as fixed with version.

Comment by Derick Rethans [ 02/Aug/17 ]

I might incidently have fixed this through SERVER-29627. asya, should we put it in the TZ project, or mark it as duplicate w/fixed?

Comment by auto [ 21/Oct/13 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-11203 Reverting changes to time support code to work with negative time_t

Doing this correctly depends on SERVER-11273

Revert "SERVER-11174 Reference db of tool test rather than global db object"
This reverts commit d1c2ae72c4829ed77cb6b7fe42e486910483caff.

Revert "SERVER-11174 Skip tests of negative dates on windows"
This reverts commit 9fcdfeb195c42e91a49e37212a65fea624d71c13.

Revert "SERVER-11174 Skip test for date that cannot be stored on 32 bit systems"
This reverts commit fc3b552e788e027af40523173790a20f49b27ec5.

Revert "SERVER-6058 Fix time_support_test on systems with small time_t"
This reverts commit c1a09966ff05c42c184870715e7a7383d02c477d.

Revert "SERVER-6058 Factor out date to UTC handling code and use in mongoexport"
This reverts commit 0b19be208f91e70c683d60c22011cad14a9fa78c.
Branch: master
https://github.com/mongodb/mongo/commit/a4e7a4f5068c96faaffec93e0b2e86d084f27e92

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