Browse Source

Small tweak in date formatter

Ralfp 12 years ago
parent
commit
4a6955b9e2
1 changed files with 4 additions and 1 deletions
  1. 4 1
      misago/utils/datesformats.py

+ 4 - 1
misago/utils/datesformats.py

@@ -82,7 +82,10 @@ def reltimesince(val, arg=""):
                     "Minute ago",
                     "%(minutes)s minutes ago",
                 minutes) % {'minutes': minutes}
-                
+
+        if diff.seconds < 3660:
+            return _("Hour ago")
+        
         if diff.seconds < 10800:
             hours = int(math.floor(diff.seconds / 3600.0))
             minutes = (diff.seconds - (hours * 3600)) / 60