mirror of
https://github.com/ihabunek/toot
synced 2024-12-23 23:52:40 +01:00
Fix return type
This commit is contained in:
parent
dff36e28f3
commit
12d84ea05e
@ -35,7 +35,7 @@ def parse_datetime(value):
|
||||
return dttm.astimezone()
|
||||
|
||||
|
||||
def time_ago(value: datetime) -> datetime:
|
||||
def time_ago(value: datetime) -> str:
|
||||
now = datetime.now().astimezone()
|
||||
delta = now.timestamp() - value.timestamp()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user