From 92cb9a625731a355af21682068bc1f5b09b27eec Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Tue, 23 Mar 2021 02:01:10 +0300 Subject: [PATCH] fix date parsing --- e3372.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e3372.py b/e3372.py index e5618a6..fcab156 100644 --- a/e3372.py +++ b/e3372.py @@ -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):