fix date parsing
This commit is contained in:
parent
31001a7298
commit
92cb9a6257
2
e3372.py
2
e3372.py
@ -98,7 +98,7 @@ class SMS:
|
|||||||
|
|
||||||
def timestamp(self):
|
def timestamp(self):
|
||||||
# input example: 2020-08-11 14:55:51
|
# 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):
|
class APIError(Exception):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user