From 75e9d0949c53fbf91bf7a4c964517ddff67f0181 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 26 Jun 2017 15:41:08 +0100 Subject: [PATCH] Add more nuance to time filter Saying X seconds is more precise than we need to be. --- app/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/__init__.py b/app/__init__.py index f7b532391..075f795e5 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -303,6 +303,8 @@ def format_delta(date): ) if delta < timedelta(seconds=30): return "just now" + if delta < timedelta(seconds=60): + return "in the last minute" return ago.human( delta, future_tense='{} from now', # No-one should ever see this