mirror of
https://github.com/ihabunek/toot
synced 2024-12-25 00:20:55 +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()
|
return dttm.astimezone()
|
||||||
|
|
||||||
|
|
||||||
def time_ago(value: datetime) -> datetime:
|
def time_ago(value: datetime) -> str:
|
||||||
now = datetime.now().astimezone()
|
now = datetime.now().astimezone()
|
||||||
delta = now.timestamp() - value.timestamp()
|
delta = now.timestamp() - value.timestamp()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user