diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-12-24 00:24:11 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-12-24 00:24:11 (GMT) |
commit | b2eacd91290baa63ac0f206ced26cfe12a65d10d (patch) | |
tree | 4077711c23a320e1f1e7ba86e2f7dda7d7d17ce8 /Doc/includes | |
parent | bc78e37d4600de458559ca25959ee81ab864df29 (diff) | |
download | cpython-b2eacd91290baa63ac0f206ced26cfe12a65d10d.zip cpython-b2eacd91290baa63ac0f206ced26cfe12a65d10d.tar.gz cpython-b2eacd91290baa63ac0f206ced26cfe12a65d10d.tar.bz2 |
Issue #9063: Corrected the tzinfo example.
Diffstat (limited to 'Doc/includes')
-rw-r--r-- | Doc/includes/tzinfo-examples.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/includes/tzinfo-examples.py b/Doc/includes/tzinfo-examples.py index 2de95d4..5132429 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 |