2
0
mirror of https://github.com/acmesh-official/acme.sh synced 2025-08-31 14:25:37 +00:00

Merge pull request #1746 from j-c-m/time2str-dev

BSD fix _time2str()
This commit is contained in:
neil
2018-07-25 12:10:39 +08:00
committed by GitHub

12
acme.sh
View File

@@ -1374,17 +1374,17 @@ _url_replace() {
}
_time2str() {
#Linux
if date -u -d@"$1" 2>/dev/null; then
return
fi
#BSD
if date -u -r "$1" 2>/dev/null; then
return
fi
#Soaris
#Linux
if date -u -d@"$1" 2>/dev/null; then
return
fi
#Solaris
if _exists adb; then
_t_s_a=$(echo "0t${1}=Y" | adb)
echo "$_t_s_a"