diff options
author | Ngalim Siregar <ngalim.siregar@gmail.com> | 2019-08-09 14:22:16 (GMT) |
---|---|---|
committer | Paul Ganssle <pganssle@users.noreply.github.com> | 2019-08-09 14:22:16 (GMT) |
commit | 92c7e30adf5c81a54d6e5e555a6bdfaa60157a0d (patch) | |
tree | f7076888f795a4e3198ff4ca3ef189551891725b /Misc | |
parent | ed70a344b5fbddea85726ebc1964ee0cfdef9c40 (diff) | |
download | cpython-92c7e30adf5c81a54d6e5e555a6bdfaa60157a0d.zip cpython-92c7e30adf5c81a54d6e5e555a6bdfaa60157a0d.tar.gz cpython-92c7e30adf5c81a54d6e5e555a6bdfaa60157a0d.tar.bz2 |
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
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-07-21-20-59-31.bpo-37642.L61Bvy.rst | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -1881,3 +1881,4 @@ Aleksandr Balezin Robert Leenders Tim Hopper Dan Lidral-Porter +Ngalim Siregar diff --git a/Misc/NEWS.d/next/Library/2019-07-21-20-59-31.bpo-37642.L61Bvy.rst b/Misc/NEWS.d/next/Library/2019-07-21-20-59-31.bpo-37642.L61Bvy.rst new file mode 100644 index 0000000..09ff257 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-07-21-20-59-31.bpo-37642.L61Bvy.rst @@ -0,0 +1,3 @@ +Allowed the pure Python implementation of :class:`datetime.timezone` to represent +sub-minute offsets close to minimum and maximum boundaries, specifically in the +ranges (23:59, 24:00) and (-23:59, 24:00). Patch by Ngalim Siregar |