From: paul Date: Wed, 1 Jul 2015 15:44:56 +0000 (+0000) Subject: prevent faulty calendar wrapping X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=81c946c0b8fbbaeb0fde535d127eb3f8979fb701;p=lobster prevent faulty calendar wrapping svn path=/trunk/; revision=65 --- diff --git a/templates/courses.css.sh b/templates/courses.css.sh index 5321300..2c34fac 100644 --- a/templates/courses.css.sh +++ b/templates/courses.css.sh @@ -58,7 +58,7 @@ cat <' echo ' ' for wd in mon tue wed thu fri sat sun; do - echo ' '$(date -d $wd +%a)'' + echo -n ''$(date -d $wd +%a)'' done fdom=$(date -d ${dts_year}-${dts_month}-1 +%u) while [ "$fdom" -gt 1 ]; do - echo ' ' + echo -n '' fdom=$(($fdom - 1)) done -echo '' +#echo -n '' +#cnt=$(date -d ${dts_year}-${dts_month}-1 +%s) +#while [ "$(date -d @$cnt +%m)" = "$dts_month" ]; do +# dn=$(date -d @$cnt +%d) +# echo -n '' +# cnt=$(($cnt + 86400)) +#done cnt=$(date -d ${dts_year}-${dts_month}-1 +%s) while [ "$(date -d @$cnt +%m)" = "$dts_month" ]; do dn=$(date -d @$cnt +%d) - echo ' ' + echo -n '' cnt=$(($cnt + 86400)) done echo '
'