# HG changeset patch # User Matthias Förste # Date 1546862425 -3600 # Node ID a68b32758059d47e2e09ae226a8a9b18d8680571 # Parent af056e82c644820cb772ea1aacd19d4ec8ca38f2 certificate validity dates should contain the timezone; ignoring it may result in an error when the enddate is during a daylight saving time related clock change diff -r af056e82c644 -r a68b32758059 check_cert.pl --- a/check_cert.pl Mon Jan 07 12:43:56 2019 +0100 +++ b/check_cert.pl Mon Jan 07 13:00:25 2019 +0100 @@ -142,7 +142,7 @@ # check expire date foreach ( sort keys %certs ) { my $enddate; - if ( @{ $certs{$_} }[1] =~ /(\w+\s+\d+\s+\d+:\d+:\d+\s+\d+)/ ) { + if ( @{ $certs{$_} }[1] =~ /(\w+\s+\d+\s+\d+:\d+:\d+\s+\d+\s+(\w+)?)/ ) { $enddate = $1; } $enddate = ParseDate($enddate);