summaryrefslogtreecommitdiff
path: root/Lib/email/_parseaddr.py
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2006-04-03 08:05:07 +0000
committerAnthony Baxter <anthonybaxter@gmail.com>2006-04-03 08:05:07 +0000
commit93f5b93422ddfc46142186078ee0eedfcace8964 (patch)
tree830473a8f089ef26da75b54b9ee9d98bdefa6234 /Lib/email/_parseaddr.py
parent9e5eb4ffbf2198ad5721078b4a76e7a63c0ac3c6 (diff)
downloadcpython-git-93f5b93422ddfc46142186078ee0eedfcace8964.tar.gz
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
Diffstat (limited to 'Lib/email/_parseaddr.py')
-rw-r--r--Lib/email/_parseaddr.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/email/_parseaddr.py b/Lib/email/_parseaddr.py
index 109ff5f7c7..5821ddf090 100644
--- a/Lib/email/_parseaddr.py
+++ b/Lib/email/_parseaddr.py
@@ -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):