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"
This commit is contained in:
Francesco De Francesco 2022-10-17 09:46:59 +02:00 committed by GitHub
parent 1e3d923460
commit b51917a0ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

1
ssl
View file

@ -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