1
0
mirror of https://github.com/ihabunek/toot synced 2024-12-23 23:52:40 +01:00

Fix return type

This commit is contained in:
Ivan Habunek 2023-06-24 10:04:40 +02:00
parent dff36e28f3
commit 12d84ea05e
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -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()