Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
Description
https://github.com/mongodb/mongo-go-driver/search?q=UnixNano&unscoped_q=UnixNano
Using UnixNano results in underflow for large and small dates (dates sufficiently far from January 1st, 1970). The following calculation should be used instead:
return t.Unix()*1000 + int64(t.Nanosecond()/1e6)
|
Attachments
Issue Links
- related to
-
GODRIVER-983 extjson date parser doesn't work for dates after the year 2262
-
- Closed
-