Message2402
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>. |
|
Date |
User |
Action |
Args |
2009-02-03 14:22:02 | admin | link | issue1658173 messages |
2009-02-03 14:22:02 | admin | create | |
|