mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Closes issue #23600: Wrong results from tzinfo.fromutc().
This commit is contained in:
parent
87d0066f1a
commit
c79447b267
3 changed files with 27 additions and 1 deletions
|
|
@ -3040,7 +3040,7 @@ tzinfo_fromutc(PyDateTime_TZInfo *self, PyObject *dt)
|
|||
goto Fail;
|
||||
if (dst == Py_None)
|
||||
goto Inconsistent;
|
||||
if (delta_bool(delta) != 0) {
|
||||
if (delta_bool((PyDateTime_Delta *)dst) != 0) {
|
||||
PyObject *temp = result;
|
||||
result = add_datetime_timedelta((PyDateTime_DateTime *)result,
|
||||
(PyDateTime_Delta *)dst, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue