Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a crash when all 64 bits in timestamp are 1 (#22)
We've found some .msg files in the wild that have a CREATION_TIME that has all 64 bits set: 9223372036854775807. Adding this number of 100ns intervals to the base timestamp of 1601-01-01 results in a timestamp somewhere in the year 30828 which is not supported by Python's datetime module, as datetime.MAXYEAR is currently 9999. Co-authored-by: Martijn van de Streek <[email protected]>
- Loading branch information