From: Anthony Baxter Date: Mon, 3 Apr 2006 16:40:28 +0000 (+0000) Subject: backport of r43578 X-Git-Tag: v2.4.4c1~293 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0860da9e900708546a8e989b987bfc628e22caad;p=thirdparty%2FPython%2Fcpython.git backport of r43578 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 --- diff --git a/Lib/email/_parseaddr.py b/Lib/email/_parseaddr.py index 7d759efbcff5..8e6cb60bd58a 100644 --- a/Lib/email/_parseaddr.py +++ b/Lib/email/_parseaddr.py @@ -117,7 +117,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):