aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/i18n.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Mailman/i18n.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mailman/i18n.py b/Mailman/i18n.py
index 890ecab6..7fe3b7ce 100644
--- a/Mailman/i18n.py
+++ b/Mailman/i18n.py
@@ -110,6 +110,10 @@ def ctime(date):
year, mon, day, hh, mm, ss, wday, ydat, dst = time.strptime(date)
if dst in (0,1):
tzname = time.tzname[dst]
+ else:
+ # MAS: No exception but dst = -1 so try
+ return ctime(time.mktime((year, mon, day, hh, mm, ss, wday,
+ ydat, dst)))
except (ValueError, AttributeError):
try:
wday, mon, day, hms, year = date.split()