Browse Source

Fixes and cleanup in compact dates.

Ralfp 12 years ago
parent
commit
518c8800cd
2 changed files with 4 additions and 5 deletions
  1. 4 4
      misago/templatetags/datetime.py
  2. 0 1
      misago/utils/datesformats.py

+ 4 - 4
misago/templatetags/datetime.py

@@ -20,10 +20,10 @@ def reltimesince_filter(val, arg=""):
 
 
 @register.filter(name='compact')
-def compact_filter(val, arg=""):
-    return compact(val, arg)
+def compact_filter(val):
+    return compact(val)
 
 
 @register.filter(name='relcompact')
-def relcompact_filter(val, arg=""):
-    return relcompact(val, arg)
+def relcompact_filter(val):
+    return relcompact(val)

+ 0 - 1
misago/utils/datesformats.py

@@ -120,7 +120,6 @@ def compact(val):
     return format(localtime(val), _('j M y'))
 
 
-
 def relcompact(val):
     if not val:
         return _("Never")