Skip to content

Commit 5e682d9

Browse files
authored
Compare all timestamps in UTC timezone. (#309)
1 parent 748b7e7 commit 5e682d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def main(args):
107107

108108
cert = x509.load_pem_x509_certificate(args.certificate.read())
109109
# Some sanity/validity checks
110-
now = datetime.datetime.now()
110+
now = datetime.datetime.utcnow()
111111
if cert.not_valid_before > now:
112112
fatal("Certificate validity starts in the future.")
113113
if cert.not_valid_after <= now:

0 commit comments

Comments
 (0)