[SERVER-40739] Why does min Date get converted to unix epoch on insert? Created: 19/Apr/19 Updated: 19/Jun/23 Resolved: 19/Jun/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | Shane Harvey | Assignee: | [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive) |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | move-stm, sdp-backlog-purge | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Server Development Platform
|
| Sprint: | Dev Tools 2019-05-20, Dev Tools 2019-06-03 |
| Participants: |
| Description |
|
Semi-related to
|
| Comments |
| Comment by Alex Neben [ 19/Jun/23 ] | ||
|
This has been identified as work that the SDP team won't do in the near term. Please reopen with a comment if you feel this work should be reprioritized and explain why. | ||
| Comment by Steven Vannelli [ 10/May/22 ] | ||
|
Moving this ticket to the Backlog and removing the "Backlog" fixVersion as per our latest policy for using fixVersions. | ||
| Comment by Billy Donahue [ 14/May/19 ] | ||
|
I wanted to convince myself of where the epoch conversion happens.
Causes an instrumented mongod to produce:
So it's happening in shell before the insert is sent. The src/mongo/shell/types.js JS code has nothing to do with it. There's no mangling of the Date class there. This particular crazy year part: "0NaN" is because we're blindly zero-padding year to width 4. |