Skip to content

gh-101035: Check fs.st_mtime before use. #101036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

EvanLai88
Copy link

@EvanLai88 EvanLai88 commented Jan 14, 2023

datetime.datetime.fromtimestamp() will raise OSError on win32 when timestamp is less then -43200.
If so, use timestamp from time.time().

datetime.datetime.fromtimestamp() will raise `OSError` on `win32` when
timestamp is less then `-43200`.
If so, use timestamp from `time.time()`.
@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@ghost
Copy link

ghost commented Jan 14, 2023

All commit authors signed the Contributor License Agreement.
CLA signed

@python-cla-bot
Copy link

The following commit authors need to sign the Contributor License Agreement:

CLA signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants