Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.21.8

Bug #19151 Easter Monday is always on the next day
Submitted: 2011-12-20 16:30 UTC
From: ramilehti Assigned: kguest
Status: Closed Package: Date_Holidays (version 0.21.5)
PHP Version: 5.3.5 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2011-12-20 16:30 UTC] ramilehti (Rami Lehti)
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

Comments

 [2012-02-21 04:04 UTC] twilek (Henning Retzgen)
Same here, but it is always the next day... Easter monday is always one day in the future from today...
 [2012-02-27 18:18 UTC] yunosh (Jan Schneider)
-Summary: 21st of December 2011 is Easter Monday in many national calendars +Summary: Easter Monday is always on the next day
 [2012-02-27 18:27 UTC] yunosh (Jan Schneider)
This is due to bug #14413 in the Date package.
 [2012-02-27 18:28 UTC] yunosh (Jan Schneider)
 [2012-02-28 04:19 UTC] kguest (Ken Guest)
-Assigned To: +Assigned To: kguest
 [2012-02-28 04:22 UTC] kguest (Ken Guest)
-Status: Assigned +Status: Closed
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/