Commit ad46f9e0 authored by Francesco Poldi's avatar Francesco Poldi

Fix error _formatDate

parent 2ca4a73b
...@@ -16,9 +16,9 @@ def _formatDate(date): ...@@ -16,9 +16,9 @@ def _formatDate(date):
if "win" in platform: if "win" in platform:
return f'\"{date.split()[0]}\"' return f'\"{date.split()[0]}\"'
try: try:
return datetime.datetime.strptime(date, "%Y-%m-%d %H:%M:%S").timestamp() return int(datetime.datetime.strptime(date, "%Y-%m-%d %H:%M:%S").timestamp())
except ValueError: except ValueError:
return datetime.datetime.strptime(date, "%Y-%m-%d").timestamp() return int(datetime.datetime.strptime(date, "%Y-%m-%d").timestamp())
async def Favorites(username, init): async def Favorites(username, init):
logme.debug(__name__+':Favorites') logme.debug(__name__+':Favorites')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment