From 478f3f18c0d22b3ebadf2e59c1d8c085e9faae3f Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 11 Feb 2009 23:18:38 +0100 Subject: [PATCH] Fix passing date to Date_Holidays. Bug: 7961 --- kronolith/lib/Driver/holidays.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kronolith/lib/Driver/holidays.php b/kronolith/lib/Driver/holidays.php index fe9e74d98..1cfc970db 100644 --- a/kronolith/lib/Driver/holidays.php +++ b/kronolith/lib/Driver/holidays.php @@ -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__); -- 2.11.0