mirror of
https://github.com/python/cpython.git
synced 2025-11-12 07:02:33 +00:00
Issue #9063: Corrected the tzinfo example.
This commit is contained in:
parent
bc78e37d46
commit
b2eacd9129
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ class LocalTimezone(tzinfo):
|
||||||
def _isdst(self, dt):
|
def _isdst(self, dt):
|
||||||
tt = (dt.year, dt.month, dt.day,
|
tt = (dt.year, dt.month, dt.day,
|
||||||
dt.hour, dt.minute, dt.second,
|
dt.hour, dt.minute, dt.second,
|
||||||
dt.weekday(), 0, -1)
|
dt.weekday(), 0, 0)
|
||||||
stamp = _time.mktime(tt)
|
stamp = _time.mktime(tt)
|
||||||
tt = _time.localtime(stamp)
|
tt = _time.localtime(stamp)
|
||||||
return tt.tm_isdst > 0
|
return tt.tm_isdst > 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue