Commit 0b073278 authored by minamotorin's avatar minamotorin Committed by GitHub

Suggestion of #12

Remove workaround of https://github.com/twintproject/twint/issues/597
parent 20dee4a3
...@@ -17,9 +17,6 @@ def _sanitizeQuery(_url, params): ...@@ -17,9 +17,6 @@ def _sanitizeQuery(_url, params):
def _formatDate(date): def _formatDate(date):
if "wind" in platform:
#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