vzhd1701 / evernote-backup

Backup & export all Evernote notes and notebooks
MIT License
1k stars 77 forks source link

fix: negative timestamp in note_formatter_util (close #38) #48

Closed favoyang closed 1 year ago

favoyang commented 1 year ago

When the timestamp is negative, set it to zero.

codecov[bot] commented 1 year ago

Codecov Report

Merging #48 (c8374f4) into master (e09a805) will not change coverage. Report is 1 commits behind head on master. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #48   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           26        26           
  Lines         1355      1365   +10     
=========================================
+ Hits          1355      1365   +10     
Files Coverage Δ
evernote_backup/note_formatter_util.py 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

vzhd1701 commented 1 year ago

Evernote supports negative timestamps since you can manually set any creation date for your notes https://dev.evernote.com/doc/reference/Types.html#Typedef_Timestamp