From 81c946c0b8fbbaeb0fde535d127eb3f8979fb701 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 1 Jul 2015 15:44:56 +0000 Subject: [PATCH] prevent faulty calendar wrapping svn path=/trunk/; revision=65 --- templates/courses.css.sh | 13 +++++++------ templates/edit_course.sh | 14 ++++++++++---- 2 files changed, 17 insertions(+), 10 deletions(-) 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 '
' -- 2.39.2