]> granicus.if.org Git - python/commitdiff
Issue #9063: Corrected the tzinfo example.
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Fri, 24 Dec 2010 00:24:11 +0000 (00:24 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Fri, 24 Dec 2010 00:24:11 +0000 (00:24 +0000)
Doc/includes/tzinfo-examples.py

index 2de95d4ecb4f04f866b0396eafbfa6473bf5d200..5132429fb447b0ed79e8cace2349854a9345bb67 100644 (file)
@@ -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