]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37642: Update acceptable offsets in timezone (GH-14878) (#15226)
authorPaul Ganssle <pganssle@users.noreply.github.com>
Thu, 15 Aug 2019 19:09:37 +0000 (15:09 -0400)
committerGitHub <noreply@github.com>
Thu, 15 Aug 2019 19:09:37 +0000 (15:09 -0400)
commited44b84961eb0e5b97e4866c1455ac4093d27549
treec29b3d704592f8b7d3f04419c0606a952e04d02d
parent6ac851fadf52ccaf8a14abe1b5e6a74bd6eec69e
bpo-37642: Update acceptable offsets in timezone (GH-14878) (#15226)

This fixes an inconsistency between the Python and C implementations of
the datetime module. The pure python version of the code was not
accepting offsets greater than 23:59 but less than 24:00. This is an
accidental legacy of the original implementation, which was put in place
before tzinfo allowed sub-minute time zone offsets.

GH-14878

(cherry picked from commit 92c7e30adf5c81a54d6e5e555a6bdfaa60157a0d)
Lib/datetime.py
Lib/test/datetimetester.py
Misc/ACKS
Misc/NEWS.d/next/Library/2019-07-21-20-59-31.bpo-37642.L61Bvy.rst [new file with mode: 0644]
Modules/_datetimemodule.c