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-05 20:12 UTC Modified: 2008-01-05 20:18 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    
Subscription  


 [2008-01-05 20: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"

Comments

 [2008-01-05 20: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-05 20:18 UTC] kguest (Ken Guest)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net 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.