diff options
Diffstat (limited to 'Mailman/Archiver/pipermail.py')
-rw-r--r-- | Mailman/Archiver/pipermail.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Archiver/pipermail.py b/Mailman/Archiver/pipermail.py index e2e6c062..210030ed 100644 --- a/Mailman/Archiver/pipermail.py +++ b/Mailman/Archiver/pipermail.py @@ -7,7 +7,7 @@ import os import re import sys import time -from email.Utils import parseaddr, parsedate_tz +from email.Utils import parseaddr, parsedate_tz, mktime_tz import cPickle as pickle from cStringIO import StringIO from string import lowercase @@ -224,7 +224,7 @@ class Article: return None date = parsedate_tz(datestr) try: - return time.mktime(date[:9]) + return mktime_tz(date) except (TypeError, ValueError, OverflowError): return None date = floatdate('date') |