We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8687df commit 097a120Copy full SHA for 097a120
Lib/email/utils.py
@@ -401,7 +401,7 @@ def localtime(dt=None, isdst=-1):
401
except AttributeError:
402
# Compute UTC offset and compare with the value implied by tm_isdst.
403
# If the values match, use the zone name implied by tm_isdst.
404
- delta = dt - datetime.datetime(*time.gmtime(ts)[:6])
+ delta = dt - datetime.datetime(*time.gmtime(seconds)[:6])
405
dst = time.daylight and localtm.tm_isdst > 0
406
gmtoff = -(time.altzone if dst else time.timezone)
407
if delta == datetime.timedelta(seconds=gmtoff):
0 commit comments