mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 19:03:30 -05:00
Add more nuance to time filter
Saying X seconds is more precise than we need to be.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user