'k' date parameter should be used for hour of day

master
Kenneth Barbour 2022-07-20 18:56:01 -04:00
parent 46e3946489
commit 8b861d092e
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ function generate_manifest_thumbnail() {
local relpath=${2}
local basename=$(basename "${manifest}" "manifest.txt")
local dest=${relpath}/${basename}thumbnail.png
local hour_of_day=$(date -d @$(timestamp_from_filename "${manifest}") "+%d")
local hour_of_day=$(date -d @$(timestamp_from_filename "${manifest}") "+%k")
if [ -f "${WXRX_WEB_PUBDIR}/${dest}" ]; then
logdebug "thumbnail already exists: %s" "${WXRX_WEB_PUBDIR}/${dest}"
echo $dest