]> git.ozlabs.org Git - patchwork/commit
views/mbox: Use Date: header from original message
authorJeremy Kerr <jk@ozlabs.org>
Mon, 10 Jun 2013 03:50:21 +0000 (11:50 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 10 Jun 2013 04:00:45 +0000 (12:00 +0800)
commit4e0db9ebf1279afc0f2a187f25dbfcb97e314a78
treecd7f1a3d5bfbac2df4ce51558f7a8feea10feab0
parent67181f5c929018d5304732969f0811795c13ea37
views/mbox: Use Date: header from original message

Since we use UTC for internal date storage, we lose the timestamp info
from the original patch submissions. This means that the mbox views
(which are typically passed through to SCM commit logs) lose the
timezone information.

This change uses the Date header from the original message, if possible.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/tests/mboxviews.py
apps/patchwork/views/__init__.py