remove string GMT from certificate start+end time

This commit is contained in:
Dirk 2018-01-29 23:54:22 +01:00
parent 01f7612bd0
commit 02b5497864

View File

@ -6981,6 +6981,9 @@ certificate_info() {
days2expire=$(( $(parse_date "$enddate" "+%s" $'%b %d %T %Y %Z') - $(LC_ALL=C date "+%s") )) # first in seconds
days2expire=$((days2expire / 3600 / 24 ))
enddate="$(strip_trailing_space "${enddate//GMT/}")"
startdate="$(strip_trailing_space "${startdate//GMT/}")"
# we adjust the thresholds by %50 for LE certificates, relaxing those warnings
if grep -q "^Let's Encrypt Authority" <<< "$issuer_CN"; then
days2warn2=$((days2warn2 / 2))