Fix passing date to Date_Holidays.
authorJan Schneider <jan@horde.org>
Wed, 11 Feb 2009 22:18:38 +0000 (23:18 +0100)
committerJan Schneider <jan@horde.org>
Fri, 13 Feb 2009 00:47:54 +0000 (01:47 +0100)
Bug: 7961

kronolith/lib/Driver/holidays.php

index fe9e74d..1cfc970 100644 (file)
@@ -67,7 +67,7 @@ class Kronolith_Driver_holidays extends Kronolith_Driver {
         for ($date = new Horde_Date($startDate);
              $date->compareDate($endDate) <= 0;
              $date->mday++) {
-            $holidays = $dh->getHolidayForDate($date->timestamp(), null, true);
+            $holidays = $dh->getHolidayForDate($date->format('Y-m-d'), null, true);
             if (Date_Holidays::isError($holidays)) {
                 Horde::logMessage(sprintf('Unable to retrieve list of holidays from %s to %s',
                                           (string)$startDate, (string)$endDate), __FILE__, __LINE__);