[DOCS-16350] [SERVER] Error with $hour result in an example Created: 29/Aug/23 Updated: 06/Nov/23 Resolved: 03/Nov/23 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231106 |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | YC Phuah | Assignee: | Lauren Tran |
| Resolution: | Done | Votes: | 0 |
| Labels: | new-hire-ticket, quick-win | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 23 weeks, 1 day ago |
| Story Points: | 1 |
| Description |
|
In one of the example for $hour (aggregation) documentation, the result is 18.
However the correct result should be 19. Running in the same in old (legacy) mongo shell gives 18. This is because that syntax is wrong for mongosh and the date becomes ISODate("1970-01-01T00:00:00Z")
Discussion on Slack: https://mongodb.slack.com/archives/CC1SW4PA4/p1693242762226949 |