use Horde_Date_Utils
authorChuck Hagenbuch <chuck@horde.org>
Tue, 2 Jun 2009 14:48:54 +0000 (10:48 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Tue, 2 Jun 2009 14:48:54 +0000 (10:48 -0400)
kronolith/lib/Block/month.php
kronolith/lib/FreeBusy/View/Month.php
kronolith/lib/Kronolith.php
kronolith/lib/Views/Month.php
kronolith/lib/Views/Week.php
kronolith/lib/Views/Year.php

index d629f75..7961826 100644 (file)
@@ -97,7 +97,7 @@ class Horde_Block_Kronolith_month extends Horde_Block {
             if ($startday == Horde_Date::DATE_SUNDAY) {
                 $daysInView -= 7;
             }
-            $endday = new Horde_Date(array('mday' => Horde_Date::daysInMonth($month, $year),
+            $endday = new Horde_Date(array('mday' => Horde_Date_Utils::daysInMonth($month, $year),
                                            'month' => $month,
                                            'year' => $year));
             $endday = $endday->dayOfWeek();
index 41b4b48..ee9b754 100644 (file)
@@ -85,7 +85,7 @@ class Kronolith_FreeBusy_View_Month extends Kronolith_FreeBusy_View {
     {
         $this->_start = new Horde_Date($day);
         $this->_start->mday = 1;
-        $this->_days = Horde_Date::daysInMonth($day->month, $day->year);
+        $this->_days = Horde_Date_Utils::daysInMonth($day->month, $day->year);
         $this->_end = new Horde_Date($this->_start);
         $this->_end->hour = 23;
         $this->_end->min = $this->_end->sec = 59;
index 2a9b17e..01724c0 100644 (file)
@@ -733,7 +733,7 @@ class Kronolith
             }
             while ($diff[2] < 0) {
                 --$diff[1];
-                $diff[2] += Horde_Date::daysInMonth($event->start->month, $event->start->year);
+                $diff[2] += Horde_Date_Utils::daysInMonth($event->start->month, $event->start->year);
             }
             while ($diff[1] < 0) {
                 --$diff[0];
index cdf7632..337b8fb 100644 (file)
@@ -72,7 +72,7 @@ class Kronolith_View_Month {
             if ($this->_startday == Horde_Date::DATE_SUNDAY) {
                 $this->_daysInView -= 7;
             }
-            $endday = new Horde_Date(array('mday' => Horde_Date::daysInMonth($this->month, $this->year),
+            $endday = new Horde_Date(array('mday' => Horde_Date_Utils::daysInMonth($this->month, $this->year),
                                            'month' => $this->month,
                                            'year' => $this->year));
             $endday = $endday->dayOfWeek();
index 43e6a4a..bab2526 100644 (file)
@@ -53,7 +53,7 @@ class Kronolith_View_Week {
 
         $this->year = $year;
         $this->week = $week;
-        $day = Horde_Date::firstDayOfWeek($week, $year);
+        $day = Horde_Date_Utils::firstDayOfWeek($week, $year);
 
         if (!isset($this->startDay)) {
             if ($GLOBALS['prefs']->getValue('week_start_monday')) {
index d6c351e..001ddeb 100644 (file)
@@ -78,7 +78,7 @@ class Kronolith_View_Year {
                 if ($startday == Horde_Date::DATE_SUNDAY) {
                     $daysInView -= 7;
                 }
-                $endday = new Horde_Date(array('mday' => Horde_Date::daysInMonth($month, $this->year),
+                $endday = new Horde_Date(array('mday' => Horde_Date_Utils::daysInMonth($month, $this->year),
                                                'month' => $month,
                                                'year' => $this->year));
                 $endday = $endday->dayOfWeek();