From: Alexander Belopolsky Date: Fri, 24 Dec 2010 00:24:11 +0000 (+0000) Subject: Issue #9063: Corrected the tzinfo example. X-Git-Tag: v3.2rc1~358 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2eacd91290baa63ac0f206ced26cfe12a65d10d;p=python Issue #9063: Corrected the tzinfo example. --- diff --git a/Doc/includes/tzinfo-examples.py b/Doc/includes/tzinfo-examples.py index 2de95d4ecb..5132429fb4 100644 --- a/Doc/includes/tzinfo-examples.py +++ b/Doc/includes/tzinfo-examples.py @@ -71,7 +71,7 @@ class LocalTimezone(tzinfo): def _isdst(self, dt): tt = (dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second, - dt.weekday(), 0, -1) + dt.weekday(), 0, 0) stamp = _time.mktime(tt) tt = _time.localtime(stamp) return tt.tm_isdst > 0