fix date parsing

This commit is contained in:
Evgeny Zinoviev 2021-03-23 02:01:10 +03:00
parent 31001a7298
commit 92cb9a6257

View File

@ -98,7 +98,7 @@ class SMS:
def timestamp(self):
# input example: 2020-08-11 14:55:51
return int(datetime.strptime(self.date, '%Y-%m-%d %H-%M-%S').strftime("%s"))
return int(datetime.strptime(self.date, '%Y-%m-%d %H:%M:%S').strftime("%s"))
class APIError(Exception):