diff options
| author | Aurélien Bompard <aurelien@bompard.org> | 2013-05-30 15:18:03 +0200 |
|---|---|---|
| committer | Aurélien Bompard <aurelien@bompard.org> | 2013-05-30 15:18:03 +0200 |
| commit | 02d94d437bd841cca240671558832400a470672e (patch) | |
| tree | 821f5012f2a2d3b7fbd3cd7686a1413b96163bfc /hyperkitty | |
| parent | 3e1a43e100bf464ed31d1447cbbcdf1839a1db2e (diff) | |
| download | hyperkitty-02d94d437bd841cca240671558832400a470672e.tar.gz hyperkitty-02d94d437bd841cca240671558832400a470672e.tar.xz hyperkitty-02d94d437bd841cca240671558832400a470672e.zip | |
A thread's active date is always in UTC
Diffstat (limited to 'hyperkitty')
| -rw-r--r-- | hyperkitty/templatetags/hk_generic.py | 5 |
1 files changed, 2 insertions, 3 deletions
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 |
