summaryrefslogtreecommitdiff
path: root/Mailman/Archiver/HyperArch.py
diff options
context:
space:
mode:
authorbwarsaw2000-06-26 14:54:34 +0000
committerbwarsaw2000-06-26 14:54:34 +0000
commit5fd1c7055eb3ed30e61426686e3d84319ac017c9 (patch)
treeed06fae777ca09321ddbf3172d31fcaf67a64263 /Mailman/Archiver/HyperArch.py
parent3277d7a9a8fb70ec90fe8e58d8c1c761c8eef73e (diff)
downloadmailman-5fd1c7055eb3ed30e61426686e3d84319ac017c9.tar.gz
mailman-5fd1c7055eb3ed30e61426686e3d84319ac017c9.tar.zst
mailman-5fd1c7055eb3ed30e61426686e3d84319ac017c9.zip
__init__(): When the mktime() call fails due to a "bogus year most
likely", initialize the date variable to a float time seconds, not a time tuple. This is because the following time.ctime() call expects a float.
Diffstat (limited to '')
-rw-r--r--Mailman/Archiver/HyperArch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/Archiver/HyperArch.py b/Mailman/Archiver/HyperArch.py
index df038ca6f..7d25c0ee3 100644
--- a/Mailman/Archiver/HyperArch.py
+++ b/Mailman/Archiver/HyperArch.py
@@ -252,7 +252,7 @@ class Article(pipermail.Article):
date=time.mktime(date)-tzoffset
except ValueError:
# bogus year most likely
- date=time.gmtime(time.time())
+ date=time.time()
else:
date=self.__last_article_time+1