From b51917a0cebb2d221dc7e82737042094bed5138f Mon Sep 17 00:00:00 2001 From: Francesco De Francesco Date: Mon, 17 Oct 2022 09:46:59 +0200 Subject: [PATCH] Set LC_TIME to "en_US" on macOS section (#7) Changed to prevent "Failed conversion" error when current terminal locale is different than "en_US" --- ssl | 1 + 1 file changed, 1 insertion(+) diff --git a/ssl b/ssl index 6eba93f..e9a3522 100755 --- a/ssl +++ b/ssl @@ -107,6 +107,7 @@ case $OS in ;; 'Darwin') OS='Mac' + export LC_TIME="en_US" # macos - format #date -j -f "%b %d %T %Y %Z" "$expires" +'%s'; date -j -f "%F" "$today" +'%s' ## echo $(( ( $(date -ud "$expires" +'%s') - $(date -ud "$today" +'%s') )/60/60/24 )) days