[GODRIVER-983] extjson date parser doesn't work for dates after the year 2262 Created: 19/Apr/19 Updated: 28/Oct/23 Resolved: 29/Apr/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.0.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Divjot Arora (Inactive) | Assignee: | Divjot Arora (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Description |
|
When parsing relaxed extended JSON with a date string, the code in https://github.com/mongodb/mongo-go-driver/blob/master/bson/bsonrw/extjson_wrappers.go#L206 uses the UnixNano function (https://golang.org/pkg/time/#Time.UnixNano) which can't represent dates after the year 2262. This can be changed to
instead. |
| Comments |
| Comment by Githook User [ 29/Apr/19 ] |
|
Author: {'name': 'Divjot Arora', 'username': 'divjotarora', 'email': 'divjot.arora@10gen.com'}Message: Fix extended JSON parser for large dates. Change-Id: I4aa8435fcb39ec866d97a3dc7790a6307c3b92c2 |
| Comment by Githook User [ 29/Apr/19 ] |
|
Author: {'name': 'Divjot Arora', 'username': 'divjotarora', 'email': 'divjot.arora@10gen.com'}Message: Fix extended JSON parser for large dates. Change-Id: I4aa8435fcb39ec866d97a3dc7790a6307c3b92c2 |
| Comment by Divjot Arora (Inactive) [ 25/Apr/19 ] |
|
CR: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/451985 |