summaryrefslogtreecommitdiff
path: root/src/meetingtools/extensions
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-10-02 22:23:54 +0200
committerLeif Johansson <leifj@sunet.se>2012-10-02 22:23:54 +0200
commitec839d583fff6b279c7cdec2fdf87762f81f9aa5 (patch)
tree912507bfc3353ba076ae225a8d40ba14f57d2972 /src/meetingtools/extensions
parent2346efdb58afff79fcfc1d581b0091f32ee6fac1 (diff)
- bootstrap
- cleanup - bugfixes
Diffstat (limited to 'src/meetingtools/extensions')
-rw-r--r--src/meetingtools/extensions/templatetags/datehumanize.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/meetingtools/extensions/templatetags/datehumanize.py b/src/meetingtools/extensions/templatetags/datehumanize.py
index 9570612..9b75cae 100644
--- a/src/meetingtools/extensions/templatetags/datehumanize.py
+++ b/src/meetingtools/extensions/templatetags/datehumanize.py
@@ -15,6 +15,7 @@ def datehumanize(value):
from datetime import datetime
if isinstance(value, datetime):
+ value = value.replace(tzinfo=None)
delta = datetime.now() - value
if delta.days > 6:
return value.strftime("on %b %d") # May 15