summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/rfc822.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/rfc822.py b/Lib/rfc822.py
index fbab3c8..ef5a851 100644
--- a/Lib/rfc822.py
+++ b/Lib/rfc822.py
@@ -833,6 +833,7 @@ def parsedate_tz(data):
if not mm in _monthnames:
return None
mm = _monthnames.index(mm)+1
+ if mm > 12: mm = mm - 12
if dd[-1] == ',':
dd = dd[:-1]
i = string.find(yy, ':')