Roundup Tracker - Issues

Message2402

Author anonymous
Recipients
Date 2007-02-12.16:24:06
Message-id
In-reply-to
Our tracker has the following in config.ini:

[main]
timezone = -6

This causes most parts of roundup to display local times correctly. The mail interface, however, continues to produce Date: headers like the following:

   Date: Mon, 18 Dec 2006 19:29:06 -0000

AFAICT, this is caused by the following call to formatdate() in mailer.py:

class Mailer:
    def get_standard_message(self, to, subject,author=None)
        [...]
        writer.addheader('Date', formatdate())

At our site, we've simply explicitly added our timezone using the localtime argument to formatdate(). This works because we're using the formatdate() from email.Utils, not the fallback function defined earlier in mailer.py.

I'm not sure how a more complete solution to the problem would look; I do think, though, that mailer.py should respect the timezone setting.

Thanks!

(Apologies if sf.net broke the line wrapping on the snippets above.)

I can be reached at <willmaier@ml1.net>.
History
Date User Action Args
2009-02-03 14:22:02adminlinkissue1658173 messages
2009-02-03 14:22:02admincreate