From 17df3b82207968a9bc26c30a2161ba4ba2bbd7ac Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Thu, 16 Jun 2022 23:05:39 +0100 Subject: [PATCH] Complete missing 'busybox date' commands Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index a3c0ba6..b26862d 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -3050,7 +3050,7 @@ cert_date_to_timestamp_s() { if busybox date --help > /dev/null 2>&1 then timestamp_s="$( - date -D "%b %e %H:%M:%S %Y" -d "$in_date" +%s \ + busybox date -D "%b %e %H:%M:%S %Y" -d "$in_date" +%s \ 2>/dev/null )" return @@ -3089,7 +3089,7 @@ offset_days_to_cert_date() { if busybox date --help > /dev/null 2>&1 then cert_type_date="$( - date -u -d "@$(( $(date +%s) + offset * 86400 ))" \ + busybox date -u -d "@$(( $(busybox date +%s) + offset * 86400 ))" \ "+%b %d %H:%M:%S %Y %Z" \ 2>/dev/null )" @@ -3128,8 +3128,8 @@ ff_date_to_cert_date() { if busybox date --help > /dev/null 2>&1 then cert_type_date="$( - date -u -D "%b %e %H:%M:%S %Y" -d "$in_date" "+%b %d %H:%M:%S %Y %Z" \ - 2>/dev/null + busybox date -u -D "%b %e %H:%M:%S %Y" -d "$in_date" \ + "+%b %d %H:%M:%S %Y %Z" 2>/dev/null )" return