diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2015-09-28 01:56:53 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2015-09-28 01:56:53 (GMT) |
commit | d19b5042ff9203a050676746d6723566e0a75812 (patch) | |
tree | 96689f9404d096604e1171e7b1756c702db303fd /Modules/_datetimemodule.c | |
parent | ace12ee11e27bab1586dc8cfdacea8e69fd6f25d (diff) | |
parent | c58c2cb392479fb88e999ff99404e32b94f93cf0 (diff) | |
download | cpython-d19b5042ff9203a050676746d6723566e0a75812.zip cpython-d19b5042ff9203a050676746d6723566e0a75812.tar.gz cpython-d19b5042ff9203a050676746d6723566e0a75812.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 5289222..94336cf 100644 --- a/Modules/_datetimemodule.c +++ b/Modules/_datetimemodule.c @@ -3046,7 +3046,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); |