]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37642: Update acceptable offsets in timezone (GH-14878)
authorNgalim Siregar <ngalim.siregar@gmail.com>
Fri, 9 Aug 2019 14:22:16 +0000 (21:22 +0700)
committerPaul Ganssle <pganssle@users.noreply.github.com>
Fri, 9 Aug 2019 14:22:16 +0000 (10:22 -0400)
commit92c7e30adf5c81a54d6e5e555a6bdfaa60157a0d
treef7076888f795a4e3198ff4ca3ef189551891725b
parented70a344b5fbddea85726ebc1964ee0cfdef9c40
bpo-37642: Update acceptable offsets in timezone (GH-14878)

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
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