From 6c9b6eb0612a90329daf2ae928b23e3919e00e10 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sun, 1 Jul 2018 14:56:24 +1000 Subject: [PATCH] Shrink the precision of 'ago' datetimes so they stay compact --- lemoncurry/jinja2/ago.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemoncurry/jinja2/ago.py b/lemoncurry/jinja2/ago.py index 9da1a1d..4794b0e 100644 --- a/lemoncurry/jinja2/ago.py +++ b/lemoncurry/jinja2/ago.py @@ -6,4 +6,4 @@ def ago(dt: datetime) -> str: # We have to convert the datetime we get to local time first, because ago # just strips the timezone from a timezone-aware datetime. dt = dt.astimezone() - return human(dt, past_tense='{}', abbreviate=True) + return human(dt, precision=1, past_tense='{}', abbreviate=True)