Index: Doc/includes/tzinfo-examples.py =================================================================== --- Doc/includes/tzinfo-examples.py (revision 82616) +++ Doc/includes/tzinfo-examples.py (working copy) @@ -53,6 +53,9 @@ class LocalTimezone(tzinfo): + def __repr__(self): + return '/'.join(_time.tzname) + def utcoffset(self, dt): if self._isdst(dt): return DSTOFFSET @@ -71,7 +74,7 @@ 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