[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: |
|
||||||||||||||||
| 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: Doing this correctly depends on Revert " Revert " Revert " Revert " Revert " |