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:
parent
1e3d923460
commit
b51917a0ce
1 changed files with 1 additions and 0 deletions
1
ssl
1
ssl
|
@ -107,6 +107,7 @@ case $OS in
|
||||||
;;
|
;;
|
||||||
'Darwin')
|
'Darwin')
|
||||||
OS='Mac'
|
OS='Mac'
|
||||||
|
export LC_TIME="en_US"
|
||||||
# macos - format
|
# macos - format
|
||||||
#date -j -f "%b %d %T %Y %Z" "$expires" +'%s'; date -j -f "%F" "$today" +'%s'
|
#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
|
## echo $(( ( $(date -ud "$expires" +'%s') - $(date -ud "$today" +'%s') )/60/60/24 )) days
|
||||||
|
|
Loading…
Reference in a new issue