usgs/libcomcat

datetime fromtimestamp() methods don't work on Windows with dates before 1970-01-01

Closed this issue · 1 comments

Describe the bug
datetime fromtimestamp() methods don't work on Windows with dates before 1970-01-01

To Reproduce

Expected behavior
datetime.utcfromtimestamp(-1) => datetime.datetime(1969, 12, 31, 23, 59, 59)

Additional context
Workaround: datetime(1970,1,1) + timedelta(seconds=-1)

Fixed with PR #186