Use correct input format for 'start_fix_sec' on Darwin and *BSD

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-05-09 16:00:06 +01:00
parent 85b35cccb8
commit 55bdd0264d
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246
2 changed files with 2 additions and 1 deletions

View File

@ -72,6 +72,7 @@ jobs:
env:
EASYRSA_REMOTE_CI: 1
# Limit run to RSA and EC only, Libre does not do ED
LIBRESSL_LIMIT: 1
#EASYRSA_WIN: 1
TERM: xterm-256color

View File

@ -1652,7 +1652,7 @@ Non-decimal value for EASYRSA_FIX_OFFSET: '$EASYRSA_FIX_OFFSET'"
allow_renew_date="$(( now_sec + EASYRSA_CERT_RENEW * 86400 ))"
if [ "$EASYRSA_FIX_OFFSET" ]; then
start_fix_sec="$(date -j "${this_year}01010000.00" +%s)"
start_fix_sec="$(date -j "01010000${this_year}.00" +%s)"
end_fix_sec="$(( start_fix_sec + fix_days * 86400 ))"
# Convert to date-stamps for SSL input
start_fixdate="$(date -j -r "$start_fix_sec" +%Y%m%d%H%M%SZ)"