Roundup Tracker - Issues

Message2051

Author krzyg
Recipients
Date 2006-01-15.15:14:39
Message-id
In-reply-to
Logged In: YES 
user_id=1376167

After update i've got exception in email.Utils.formtdate.
I made a quick fix attached below. I'm new to python
so it could be invalid.

--- mailer.py   2006-01-15 15:44:48.000000000 +0100
+++ mailer.py.new       2006-01-15 16:12:34.000000000 +0100
@@ -15,7 +15,7 @@
     from email.Utils import formatdate
 except ImportError:
     def formatdate(timeval):
-        return time.strftime("%a, %d %b %Y %H:%M:%S +0000",
timeval)
+        return time.strftime("%a, %d %b %Y %H:%M:%S +0000",
time.gmtime())

 class MessageSendError(RuntimeError):
     pass
@@ -60,7 +60,7 @@
         writer.addheader('Subject', encode_header(subject,
charset))
         writer.addheader('To', ', '.join(to))
         writer.addheader('From', author)
-        writer.addheader('Date', formatdate(time.gmtime()))
+        writer.addheader('Date', formatdate())

         # Add a unique Roundup header to help filtering
         writer.addheader('X-Roundup-Name',
encode_header(tracker_name,
History
Date User Action Args
2009-02-03 14:21:29adminlinkissue1352624 messages
2009-02-03 14:21:29admincreate