diff --git a/cis/private/profile/zeitsperre_days.php b/cis/private/profile/zeitsperre_days.php index 006ee0da6..d35b6a5d4 100644 --- a/cis/private/profile/zeitsperre_days.php +++ b/cis/private/profile/zeitsperre_days.php @@ -75,13 +75,15 @@ for ($ts=$ts_beginn;$ts<=$ts_ende; $ts+=$datum_obj->ts_day) { $tag=date('d',$ts); - $wt=date('w',$ts); + $wt=date('N',$ts); $monat=date('M',$ts); - if ($wt==0 || $wt==6) + + if ($wt==6 || $wt==7) $class='feiertag'; else $class=''; - echo "
$tagbez[$wt]
$monat
$tag
"; + + echo "
".$tagbez[1][$wt]."
$monat
$tag
"; } ?> @@ -97,8 +99,8 @@ { $tag=date('d',$ts); $monat=date('M',$ts); - $wt=date('w',$ts); - if ($wt==0 || $wt==6) + $wt=date('N',$ts); + if ($wt==6 || $wt==7) $class='feiertag'; else $class='';