Commit 188e521e authored by minamotorin's avatar minamotorin Committed by GitHub
parent e6136437
...@@ -17,8 +17,9 @@ def _sanitizeQuery(_url, params): ...@@ -17,8 +17,9 @@ def _sanitizeQuery(_url, params):
def _formatDate(date): def _formatDate(date):
if "win" in platform: if "wind" in platform:
return f'\"{date.split()[0]}\"' #return f'\"{date.split()[0]}\"'
date = date.split()[0]
try: try:
return int(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:
......
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