Browse Source

add _utc_date function

neilpang 8 years ago
parent
commit
5d2c5b01a8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      acme.sh

+ 4 - 0
acme.sh

@@ -1265,6 +1265,10 @@ _time() {
   date -u "+%s"
 }
 
+_utc_date() {
+  date -u "+%Y-%m-%d %H:%M:%S"
+}
+
 _mktemp() {
   if _exists mktemp; then
     if mktemp 2>/dev/null; then