Bug #19151 [Opn]: Easter Monday is always on the next day

From: Date: Mon, 27 Feb 2012 13:27:49 +0000
Subject: Bug #19151 [Opn]: Easter Monday is always on the next day
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8330@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19151&edit=1 ID: 19151 Updated by: jan@horde.org Reported By: rami dot lehti at bitwise dot fi Summary: Easter Monday is always on the next day Status: Open Type: Bug Package: Date_Holidays Package Version: 0.21.5 PHP Version: 5.3.5 Roadmap Versions: New Comment: This is due to bug #14413 in the Date package. Previous Comments: ------------------------------------------------------------------------ [2012-02-27 13:18:11] yunosh -Summary: 21st of December 2011 is Easter Monday in many national calendars +Summary: Easter Monday is always on the next day ------------------------------------------------------------------------ [2012-02-20 23:04:40] twilek Same here, but it is always the next day... Easter monday is always one day in the future from today... ------------------------------------------------------------------------ [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 https://pear.php.net/bugs/bug.php?id=19151&edit=1

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