diff options
| author | Aurélien Bompard <aurelien@bompard.org> | 2012-11-13 17:44:40 +0100 |
|---|---|---|
| committer | Aurélien Bompard <aurelien@bompard.org> | 2012-11-14 17:35:01 +0100 |
| commit | de9f63b4cd882526f0dde3775e4aa2ac6eea8abd (patch) | |
| tree | ff0c385cf2e0b86064ae3c435602c0939f9589d1 /hyperkitty/templates | |
| parent | c4706dc6b77d8eaa57a3321b61acf76eec49e23b (diff) | |
Adapt to MySQL support splitting out the timezone offset
Since the sender's timezone is in a separate column, we can now display
the message date in Django's timezone and in the sender's timezone.
Future improvement : ask the user for his/her preferred timezone and store
it in his/her profile. Then use that to display the dates, instead of
Django's server-wide setting.
Diffstat (limited to 'hyperkitty/templates')
| -rw-r--r-- | hyperkitty/templates/messages/message.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hyperkitty/templates/messages/message.html b/hyperkitty/templates/messages/message.html index a77c694..d408936 100644 --- a/hyperkitty/templates/messages/message.html +++ b/hyperkitty/templates/messages/message.html @@ -6,13 +6,14 @@ <div class="email_date inline-block pull-right"> {% ifchanged %} <span class="date"> - {{email.date|date:"l, j F"}} + {{email|viewer_date|date:"l, j F"}} {% if unfolded %} - {{email.date|date:"Y"}} + {{email|viewer_date|date:"Y"}} {% endif %} </span> {% endifchanged %} - <span class="time">{{email.date|date:"H:i:s e"}}</span> + {% if unfolded %}<br />{% endif %} + <span class="time" title="Sender's time: {{email|sender_date|date:"l, j F H:i:s"}}">{{email|viewer_date|date:"H:i:s"}}</span> </div> <div class="gravatar{% if use_mockups %} pull-left{% endif %}"> {% gravatar_img_for_email email.email 40 %} |
