-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: BSON
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)
- related to
-
GODRIVER-983 extjson date parser doesn't work for dates after the year 2262
- Closed