output iso week date on sum week

This commit is contained in:
Jan Koppe 2023-07-31 07:33:03 +02:00
parent 481e58df34
commit 3fa11ebaee
Signed by: j
GPG key ID: BE935B0735A2129B

View file

@ -219,6 +219,7 @@ function command_sum {
# date does not accept ISO8601 calendar weeks as input, # date does not accept ISO8601 calendar weeks as input,
# we need to convert to regular ISO8601 %Y-%m-%d first # we need to convert to regular ISO8601 %Y-%m-%d first
local MONDAY_DATE=$(dateconv -f %Y-%m-%d $MONDAY_WEEKDAY) local MONDAY_DATE=$(dateconv -f %Y-%m-%d $MONDAY_WEEKDAY)
echo ; echo -e "Summary for week \033[1m${MONDAY_WEEKDAY}\033[0m" ; echo
_print_sum_for_multiple_days $MONDAY_DATE 6 _print_sum_for_multiple_days $MONDAY_DATE 6
;; ;;
"days") "days")