Skip to content

[FIX] Errors when converting negative timestamps on Windows#5388

Merged
thocevar merged 3 commits intobiolab:masterfrom
ales-erjavec:fixes/negative-timestamps
Apr 9, 2021
Merged

[FIX] Errors when converting negative timestamps on Windows#5388
thocevar merged 3 commits intobiolab:masterfrom
ales-erjavec:fixes/negative-timestamps

Conversation

@ales-erjavec
Copy link
Contributor

Issue

Fixes: gh-5345

datetime.fromtimestamp and time.gmtime raise OSError for negative timestamps on Windows.

Description of changes

Avoid use of gmtime and fromtimestamp

Includes
  • Code changes
  • Tests
  • Documentation

@codecov
Copy link

codecov bot commented Apr 8, 2021

Codecov Report

Merging #5388 (0288716) into master (cf86692) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5388      +/-   ##
==========================================
+ Coverage   86.29%   86.31%   +0.02%     
==========================================
  Files         301      301              
  Lines       61193    61244      +51     
==========================================
+ Hits        52808    52865      +57     
+ Misses       8385     8379       -6     

@janezd janezd assigned janezd and thocevar and unassigned janezd Apr 9, 2021
@thocevar thocevar merged commit 266d365 into biolab:master Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A compatibility issue related to date types

3 participants