Commit 26769a33 authored by Francesco Poldi's avatar Francesco Poldi

Workaround for #597

parent 9d8db6f2
import datetime
from sys import platform
import logging as logme
mobile = "https://mobile.twitter.com"
......@@ -12,6 +13,8 @@ def _sanitizeQuery(base,params):
return _serialQuery
def _formatDate(date):
if "win" in platform:
return f'\"{date}\"'
try:
return datetime.datetime.strptime(date, "%Y-%m-%d %H:%M:%S").timestamp()
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