X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Flib%2Fform%2FCalendar.class.php;h=447a45e02f5c6a1659dc6205713473b29ec99a47;hb=97bc3daf3d32a73d2b614eecacfe1abc0639a271;hp=f160cfa6cf43de12e3ce6000c0937223a9a5aa35;hpb=9819bb63bec83c13dd40ebb2ffc24df5fcfeda33;p=timetracker.git diff --git a/WEB-INF/lib/form/Calendar.class.php b/WEB-INF/lib/form/Calendar.class.php index f160cfa6..447a45e0 100644 --- a/WEB-INF/lib/form/Calendar.class.php +++ b/WEB-INF/lib/form/Calendar.class.php @@ -63,13 +63,7 @@ class Calendar extends FormElement { $this->mMonthNames = $i18n->monthNames; $this->mWeekDayShortNames = $i18n->weekdayShortNames; - if (is_array($i18n->holidays)) { - foreach ($i18n->holidays as $fday) { - $date_a = explode("/",$fday); // format mm/dd - $this->holidays[] = mktime(0,0,0, $date_a[0], $date_a[1], date("Y"));// + 7200; - } - } - $this->weekStartDay = $user->week_start; + $this->weekStartDay = $user->getWeekStart(); } function setStyle($style) { $this->style = $style; } @@ -132,6 +126,8 @@ class Calendar extends FormElement { $str .= "