mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-13 09:50:08 -04:00
Merge pull request #1339 from alphagov/quis-patch-1
Add more nuance to time filter
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