From fe6ccd39e26faed5c00d18fda0b87cd43ab52f78 Mon Sep 17 00:00:00 2001 From: Tomoki Yamashita Date: Wed, 10 May 2017 10:15:48 +0900 Subject: [PATCH 1/2] Set LC_TIME to be able to parse english month --- checkssl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/checkssl b/checkssl index 9ae7581..8193368 100755 --- a/checkssl +++ b/checkssl @@ -388,15 +388,15 @@ while IFS= read -r LINE; do fi if [[ "$ENDDATE" != "-" ]]; then if [[ "$os" == "bsd" ]]; then - if [[ $(date -v +"${RENEW_ALERT}d" +%s) -gt $(date -j -f "%b %d %H:%M:%S %Y %Z" "$ENDDATE" +%s) ]]; then + if [[ $(date -v +"${RENEW_ALERT}d" +%s) -gt $(LC_TIME=C date -j -f "%b %d %H:%M:%S %Y %Z" "$ENDDATE" +%s) ]]; then PROBLEMS=$(echo "${PROBLEMS}- certificate near renewal date") fi elif [[ "$os" == "mac" ]]; then - if [[ $(date -v +"${RENEW_ALERT}d" +%s) -gt $(date -j -f "%b %d %H:%M:%S %Y %Z" "$ENDDATE" +%s) ]]; then + if [[ $(date -v +"${RENEW_ALERT}d" +%s) -gt $(LC_TIME=C date -j -f "%b %d %H:%M:%S %Y %Z" "$ENDDATE" +%s) ]]; then PROBLEMS=$(echo "${PROBLEMS}- certificate near renewal date") fi else - if [[ $(date -d "${RENEW_ALERT} days" +%s) -gt $(date -d "$ENDDATE" +%s) ]]; then + if [[ $(date -d "${RENEW_ALERT} days" +%s) -gt $(LC_TIME=C date -d "$ENDDATE" +%s) ]]; then PROBLEMS=$(echo "${PROBLEMS}- certificate near renewal date") fi fi From 08063aed0e4b7ecaf6a510aa4dda9c08eab13cbc Mon Sep 17 00:00:00 2001 From: srvrco Date: Sat, 9 Dec 2017 19:50:48 +0000 Subject: [PATCH 2/2] Set LC_TIME to be able to parse english month --- checkssl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/checkssl b/checkssl index 8193368..68fe112 100755 --- a/checkssl +++ b/checkssl @@ -46,10 +46,11 @@ # 2017-01-31 updated variable for auto upgrade location (1.16) # 2017-02-06 merge branches parsing CN and wildcard certs (1.17) # 2017-02-22 make no output when -u is only arg and no upgrade available (1.18) +# 2017-12-09 Set LC_TIME to be able to parse english month (1.19) # --------------------------------------------------------------------------- PROGNAME=${0##*/} -VERSION="1.18" +VERSION="1.19" ORIGCMD="$0 $*" CODE_LOCATION="https://raw.githubusercontent.com/srvrco/checkssl/master/checkssl"