don't consider subseconds wrt expiration
This commit is contained in:
parent
6aa1862b11
commit
f0f2236c58
|
@ -103,7 +103,7 @@ def is_expired():
|
|||
if not t:
|
||||
return False
|
||||
try:
|
||||
expiration_date = datetime.strptime(t, '%Y-%m-%dT%H:%M:%S.%f')
|
||||
expiration_date = datetime.strptime(t, '%Y-%m-%dT%H:%M:%S')
|
||||
except ValueError:
|
||||
return False
|
||||
return expiration_date < datetime.now()
|
||||
|
|
Reference in New Issue