aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-03-23 02:01:10 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-03-23 02:01:10 +0300
commit92cb9a625731a355af21682068bc1f5b09b27eec (patch)
tree9ae62c7839dcfe050749cb4c7b1bed42c24c42e9
parent31001a7298e2e50cd92d175d69c9b142eeef6882 (diff)
fix date parsing
-rw-r--r--e3372.py2
1 files changed, 1 insertions, 1 deletions
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):