generated from nathanwoodburn/python-webserver-template
fix: Update to use old timezone format
All checks were successful
Build Docker / BuildImage (push) Successful in 1m20s
All checks were successful
Build Docker / BuildImage (push) Successful in 1m20s
This commit is contained in:
2
tools.py
2
tools.py
@@ -101,7 +101,7 @@ def check_ssl(domain: str):
|
||||
|
||||
expiry_date = cert_obj.not_valid_after_utc
|
||||
# Check if expiry date is past
|
||||
if expiry_date < datetime.datetime.now(tz=datetime.UTC):
|
||||
if expiry_date < datetime.datetime.now(datetime.timezone.utc):
|
||||
returns["cert"]["expired"] = True
|
||||
returns["cert"]["valid"] = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user