I'm working on importing data with dates before and after epoch.
I use a timestamp (ms) with $date like this :
It works great, gives me a document like this :
It also works great with negative timestamps (before epoch).
However, I ran into some timestamps that created problems.
For timestamps corresponding to dates between 1969-12-07 and 1970-01-25, mongoimport will throw this exception :
The document used to generate this error is :
Fyi, with this timetamp (juste a day after) it's working :
I didn't find any other ticket about this specific problem.