Complete missing 'busybox date' commands

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-06-16 23:05:39 +01:00
parent 23558ae81d
commit 17df3b8220
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -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