Skip to content
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

gh-91581: Check result of utc_to_seconds #91582

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Copy link
Member

@pganssle pganssle commented Apr 15, 2022

This result could fail. On Linux here's a minimal reproducer:

TZ=UTC python -c "from datetime import *; datetime.fromtimestamp(253402300799 + 1)"

The old behavior still raised an error in a similar way, but only because subsequent calculations happened to fail as well. Better to fail fast.

Fixes GH-91581

This result could fail. On Linux here's a minimal reproducer:

TZ=UTC python -c "from datetime import *; datetime.fromtimestamp(253402300799 + 1)"

The old behavior still raised an error in a similar way, but only
because subsequent calculations happened to fail as well. Better to fail
fast.

Fixes pythonGH-91581
@pganssle pganssle requested a review from abalkin as a code owner Apr 15, 2022
@cpython-cla-bot
Copy link

@cpython-cla-bot cpython-cla-bot bot commented Apr 15, 2022

Commit authors are required to sign the Contributor License Agreement.
CLA not 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.

2 participants