From 02d94d437bd841cca240671558832400a470672e Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Thu, 30 May 2013 15:18:03 +0200 Subject: A thread's active date is always in UTC --- hyperkitty/templatetags/hk_generic.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'hyperkitty') diff --git a/hyperkitty/templatetags/hk_generic.py b/hyperkitty/templatetags/hk_generic.py index d5512e9..2796528 100644 --- a/hyperkitty/templatetags/hk_generic.py +++ b/hyperkitty/templatetags/hk_generic.py @@ -130,14 +130,13 @@ def escapeemail(text): @register.filter() def get_date(email_or_thread): """ - Rebuild the date of an email or a thread taking the timezone into account - when applicable. + Rebuild the date of an email or a thread taking the timezone into account. """ if hasattr(email_or_thread, 'date'): tz = tzoffset(None, email_or_thread.timezone * 60) date_obj = email_or_thread.date.replace(tzinfo=tz) elif hasattr(email_or_thread, 'date_active'): - date_obj = email_or_thread.date_active + date_obj = email_or_thread.date_active.replace(tzinfo=utc) return date_obj -- cgit