mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Fix sign reversal in mktime_tz discovered by Bill van Melle.
This commit is contained in:
parent
d7300f8f56
commit
00455b77a6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue