Bug #19151 [Com]: 21st of December 2011 is Easter Monday in many national calendars

From: Date: Tue, 21 Feb 2012 14:42:10 +0000
Subject: Bug #19151 [Com]: 21st of December 2011 is Easter Monday in many national calendars
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8299@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=19151&edit=1 ID: 19151 Comment by: twilek Reported By: twilek at nexgo dot de Summary: 21st of December 2011 is Easter Monday in many national calendars Status: Open Type: Bug Package: Date_Holidays Package Version: 0.21.5 PHP Version: 5.3.5 New Comment: Same here, but it is always the next day... Easter monday is always one day in the future from today... Previous Comments: ------------------------------------------------------------------------ [2011-12-20 11:30:28] ramilehti Description: ------------ For some reason December 21st is marked as Easter Monday. Test script: --------------- require_once "Date/Holidays.php"; $germany = &Date_Holidays::factory('Germany', 2004, 'en_EN'); if (Date_Holidays::isError($germany)) { die('Factory was unable to produce driver-object'); } $easter = &$germany->getHoliday('easterMonday', 'de_DE'); if (!Date_Holidays::isError($easter)) { print_r($easter->getDate()->month); } Expected result: ---------------- 4 Actual result: -------------- 12 ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=19151&edit=1

« previous php.pear.bugs (#8299) next »