Fix stat time

This commit is contained in:
GRMrGecko 2024-02-20 09:26:39 -06:00
parent ab1939834d
commit 795c295d38

View File

@ -428,7 +428,7 @@ for ((i=0; i<${#selected_mirrors[@]}; i++)); do
# Get all timestamps, sort, and get the latest entry.
latest_unix_stat=$(stat --format='%W %X %Y %Z' "$timestamp_file_stat" | tr ' ' '\n' | sort -nr | head -n1)
# Format the timestamp.
repo_sync_time=$(date -d "@$(cat "$latest_unix_stat")" '+%c')
repo_sync_time=$(date -d "@$latest_unix_stat" '+%c')
fi
# HTML encode and export variables for subsitution.