diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2015-09-28 01:41:55 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2015-09-28 01:41:55 (GMT) |
commit | c79447b267b391857f4e61a8e05c97ff01f3e61a (patch) | |
tree | c34908468a1d48d1550ca61370e3eee576d8e821 /Modules/_datetimemodule.c | |
parent | 87d0066f1a4497fd57804c06e1c05401385186aa (diff) | |
download | cpython-c79447b267b391857f4e61a8e05c97ff01f3e61a.zip cpython-c79447b267b391857f4e61a8e05c97ff01f3e61a.tar.gz cpython-c79447b267b391857f4e61a8e05c97ff01f3e61a.tar.bz2 |
Closes issue #23600: Wrong results from tzinfo.fromutc().
Diffstat (limited to 'Modules/_datetimemodule.c')
-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); |