mirror of https://github.com/python/cpython
Fix sign reversal in mktime_tz discovered by Bill van Melle.
This commit is contained in:
parent
d7300f8f56
commit
00455b77a6
|
@ -696,7 +696,7 @@ def mktime_tz(data):
|
|||
|
||||
"""
|
||||
t = time.mktime(data[:8] + (0,))
|
||||
return t + data[9] - time.timezone
|
||||
return t - data[9] - time.timezone
|
||||
|
||||
|
||||
# When used as script, run a small test program.
|
||||
|
|
Loading…
Reference in New Issue