change in expiration date format
This commit is contained in:
parent
f0f2236c58
commit
fed052a3e5
|
@ -103,7 +103,7 @@ def is_expired():
|
|||
if not t:
|
||||
return False
|
||||
try:
|
||||
expiration_date = datetime.strptime(t, '%Y-%m-%dT%H:%M:%S')
|
||||
expiration_date = datetime.strptime(t, '%Y-%m-%d %H:%M:%S')
|
||||
except ValueError:
|
||||
return False
|
||||
return expiration_date < datetime.now()
|
||||
|
|
Reference in New Issue