mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
The email module's parsedate_tz function now sets the daylight savings
flag to -1 (unknown) since it can't tell from the date whether it should be set. patch from Aldo Cortesi
This commit is contained in:
parent
9e5eb4ffbf
commit
93f5b93422
5 changed files with 11 additions and 5 deletions
|
@ -124,7 +124,8 @@ def parsedate_tz(data):
|
|||
else:
|
||||
tzsign = 1
|
||||
tzoffset = tzsign * ( (tzoffset//100)*3600 + (tzoffset % 100)*60)
|
||||
return yy, mm, dd, thh, tmm, tss, 0, 1, 0, tzoffset
|
||||
# Daylight Saving Time flag is set to -1, since DST is unknown.
|
||||
return yy, mm, dd, thh, tmm, tss, 0, 1, -1, tzoffset
|
||||
|
||||
|
||||
def parsedate(data):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue