fixed_cert_dates(): Remove unused variable 'today_n'

Originally used to calculate roll-back by one year, also removed.

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-12-28 17:51:27 +00:00
parent 6ac84dc2aa
commit 3050d59f60
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -3508,7 +3508,7 @@ fixed_cert_dates() {
if busybox date --help > /dev/null 2>&1; then
this_year_n="$(busybox date -u +%y)"
today_n="$(busybox date -u +%j)"
#today_n="$(busybox date -u +%j)"
New_Year_day_s="$(
busybox date -u -d "${this_year_n}01010000.01" '+%s'
@ -3533,7 +3533,7 @@ fixed_cert_dates() {
elif date -j > /dev/null 2>&1; then
this_year_n="$(date -j +%y)"
today_n="$(date -u -j +%j)"
#today_n="$(date -u -j +%j)"
New_Year_day_d="$(
date -u -j -f %y%m%d%H%M%S "${this_year_n}0101000001" \
@ -3559,7 +3559,7 @@ fixed_cert_dates() {
elif this_year_n="$(date -u +%y)"; then
# Day of Year number today
today_n="$(date -u +%j)"
#today_n="$(date -u +%j)"
# New Years day date
New_Year_day_d="$(