]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-126883: Add check that timezone fields are in range for `datetime.fromisoformat...
authorSemyon Moroz <donbarbos@proton.me>
Mon, 19 May 2025 18:07:11 +0000 (18:07 +0000)
committerGitHub <noreply@github.com>
Mon, 19 May 2025 18:07:11 +0000 (14:07 -0400)
commit71c42b778dfc0831734bb7bc6121ffd44beae1d3
treede3a6f36c3138e7a99e5f0d04f75efde4ca9c5c9
parent8d490b368766ee7b28d2ccf47704b1d4b5f1ea23
gh-126883: Add check that timezone fields are in range for `datetime.fromisoformat` (#127242)

It was previously possible to specify things like `+00:90:00` which would be equivalent to `+01:30:00`, but is not a valid ISO8601 string.

---------

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
Lib/_pydatetime.py
Lib/test/datetimetester.py
Misc/ACKS
Misc/NEWS.d/next/Library/2024-11-25-10-22-08.gh-issue-126883.MAEF7g.rst [new file with mode: 0644]
Modules/_datetimemodule.c