]> granicus.if.org Git - python/commit
bpo-37642: Update acceptable offsets in timezone (GH-14878) (#15227)
authorPaul Ganssle <pganssle@users.noreply.github.com>
Thu, 15 Aug 2019 19:08:57 +0000 (15:08 -0400)
committerGitHub <noreply@github.com>
Thu, 15 Aug 2019 19:08:57 +0000 (15:08 -0400)
commit27b38b99b3a154fa5c25cd67fe01fb4fc04604b0
tree8e4bb5cc26a8cd5ab8ac8f288d558bf519377c3c
parent64db5aac6be73b14396bcde1648997e208b5a8da
bpo-37642: Update acceptable offsets in timezone (GH-14878) (#15227)

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