| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
tzstr inverts the sign of the standard offset for GMT and UTC, but did so
unconditionally, while _parsetz leaves stdoffset as None when the string
carries no offset. tzstr("GMT"), tzstr("UTC") and gettz("GMT,4;3/4") died
with "unsupported operand type(s) for *=: 'NoneType' and 'int'".
Only invert an offset that is actually there; offset-less GMT and UTC now
fall through to tzrange's zero-offset default, as tzstr("EST") already did.
Fixes GH dateutil#1432.
Fixes GH dateutil#1402.
| Back | FazBrowse Home | New Git URL |
tzstr inverts the sign of the standard offset for GMT and UTC, but did so unconditionally, while _parsetz leaves stdoffset as None when the string carries no offset. tzstr("GMT"), tzstr("UTC") and gettz("GMT,4;3/4") died with "unsupported operand type(s) for *=: 'NoneType' and 'int'".
Only invert an offset that is actually there; offset-less GMT and UTC now fall through to tzrange's zero-offset default, as tzstr("EST") already did.
Fixes GH #1432.
Fixes GH #1402.
Summary of changes
Closes
Pull Request Checklist