forked from 00dani/lemoncurry
Shrink the precision of 'ago' datetimes so they stay compact
This commit is contained in:
parent
6d7b5db482
commit
6c9b6eb061
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue