Browse Source

Merge pull request #973 from mvanini/master

Support for busybox in time2str()
neil 7 years ago
parent
commit
6a524bff9d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      acme.sh

+ 4 - 0
acme.sh

@@ -1367,6 +1367,10 @@ _time2str() {
     echo "$_t_s_a"
   fi
 
+  #Busybox
+  if echo "$1" | awk '{ print strftime("%c", $0); }' 2>/dev/null; then
+    return
+  fi
 }
 
 _normalizeJson() {