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

Bug #12835 Boxing Day not celebrated in Ireland - it's St Stephen's Day
Submitted: 2008-01-06 01:12 UTC
From: kguest Assigned: kguest
Status: Closed Package: Date_Holidays (version 0.17.2)
PHP Version: 5.1.6 OS: Ubuntu Linux
Roadmaps: 0.17.3    
Comments Add Comment Add patch

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 41 - 17 = ?

 [2008-01-06 01:12 UTC] kguest (Ken Guest)
Description: ------------ Boxing Day not celebrated in Ireland - it's St Stephen's Day. Accordingly the title of the holiday on 12-26 needs to be fixed. Test script: --------------- run the attached list_holidays.php script. spot the mistake. Expected result: ---------------- should list "Saint Stephen's Day" not "Boxing Day". Actual result: -------------- lists "Boxing Day" rather than "Saint Stephen's Day"


 [2008-01-06 01:13 UTC] kguest (Ken Guest)
test code is as follows: <?php require_once "Date/Holidays.php"; $country = "Ireland"; $date = getdate(); $year = $date['year']; $d1 = "$year-01-01"; $d2 = "$year-12-31"; $t1 = strtotime($d1); $t2 = strtotime($d2); $driver = &Date_Holidays::factory($country, $year, 'en_EN'); $hols = ($driver->getHolidaysForDatespan($t1,$t2)); foreach($hols as $holiday) { echo str_pad($holiday->getTitle(), 30, ' ') , $holiday->getDate()->format("%d %b %Y"),"\n"; } ?>
 [2008-01-06 01:18 UTC] kguest (Ken Guest)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.