diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2015-09-28 02:31:45 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2015-09-28 02:31:45 (GMT) |
commit | edc6885b3f6967df017be18a9b935f5599f10e19 (patch) | |
tree | 9b0383fafe72ae0ea91bded40465ab0112d0f414 /Modules | |
parent | 113843937615b26fe8c0a4402c754c176cb7293a (diff) | |
download | cpython-edc6885b3f6967df017be18a9b935f5599f10e19.zip cpython-edc6885b3f6967df017be18a9b935f5599f10e19.tar.gz cpython-edc6885b3f6967df017be18a9b935f5599f10e19.tar.bz2 |
Closes issue #23600: Wrong results from tzinfo.fromutc().
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_datetimemodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c index cabe4ed..6084ffa 100644 --- a/Modules/_datetimemodule.c +++ b/Modules/_datetimemodule.c @@ -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); |