summaryrefslogtreecommitdiffstats
path: root/apps/patchwork/views
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-06-10 10:16:24 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-06-10 10:16:24 +0800
commite7353352191516e45d21f9814375a92cc7f602dc (patch)
tree3c0aab82d62cba39084138674465af09634f7839 /apps/patchwork/views
parent2f0eb64a6d543b26aa0a38ff1d5a09389a5b2f5c (diff)
downloadpatchwork-e7353352191516e45d21f9814375a92cc7f602dc.tar.bz2
patchwork-e7353352191516e45d21f9814375a92cc7f602dc.tar.xz
models: Fix invalid dates in patch mbox
Currently, the Date header in mbox views is incorrect; datetime.datetime.utctimetuple assumes that the date is in the local timezone, but we keep all dates as UTC. This change replaces utctimetuple with a manual calculation of the seconds-since-epoch timestamp, which email.utils.formatdate requires. We add a testcase for this too. Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/patchwork/views')
0 files changed, 0 insertions, 0 deletions