timezone naive code in _send_bug_details_to_new_bug_subscribers sends mail from the future
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
New
|
Undecided
|
Unassigned |
Bug Description
The launchpad servers are currently running in UTC+1 (British Summer Time).
The mail that gets sent when you are assigned to a bug has a Date header like this:
Date: Mon, 29 Jun 2009 04:04:09 -0000
But Received headers like this:
Received: from gandwana.
by gandwana.
for <email address hidden>; Mon, 29 Jun 2009 04:04:10 +0100 (BST)
The date header is wrong.
Looking in mailnotification.py quickly I can see that the code is timezone-naive, but I don't know what the correct fix is, necessarily. It might be as simple as:
# Now's a good a time as any for this email; don't use the original
# reported date for the bug as it will just confuse mailer and
# recipient.
email_date = datetime.
description: | updated |
description: | updated |