Skip to content

Commit 67b30bb

Browse files
fixup
1 parent bedfbf7 commit 67b30bb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/_pydatetime.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2088,6 +2088,8 @@ def _local_timezone(self):
20882088
ts = ts2
20892089
else:
20902090
ts = (self - _EPOCH) // timedelta(seconds=1)
2091+
localtm = _time.localtime(ts)
2092+
local = datetime(*localtm[:6])
20912093
# Extract TZ data
20922094
gmtoff = localtm.tm_gmtoff
20932095
zone = localtm.tm_zone

0 commit comments

Comments
 (0)