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

Bug #18878 Queen's Birthday in WA has moved in 2011
Submitted: 2011-09-27 23:38 UTC
From: aharvey Assigned: kguest
Status: Closed Package: Date_Holidays_Australia (version SVN)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2011-09-27 23:38 UTC] aharvey (Adam Harvey)
Description: ------------ Sorry Ken, I know you've just released this, but you've reminded me that the Queen's Birthday in Western Australia has been moved for the CHOGM meeting. (Interestingly, the test covers this, but the driver doesn't handle it.) Patch attached. Test script: --------------- <?php include_once 'Date/Holidays.php'; foreach (range(2009, 2013) as $year) { $wa = Date_Holidays::factory('AustraliaWA', $year); var_dump($wa->getHoliday('queensBirthday')->getDate()->getDate(DATE_FORMAT_ISO)); } Expected result: ---------------- string(19) "2009-09-28 00:00:00" string(19) "2010-09-27 00:00:00" string(19) "2011-10-28 00:00:00" string(19) "2012-10-01 00:00:00" string(19) "2013-09-30 00:00:00" Actual result: -------------- string(19) "2009-09-28 00:00:00" string(19) "2010-09-27 00:00:00" string(19) "2011-10-03 00:00:00" string(19) "2012-10-01 00:00:00" string(19) "2013-09-30 00:00:00"

Comments

 [2011-09-27 23:38 UTC] aharvey (Adam Harvey)
 [2011-09-28 00:39 UTC] kguest (Ken Guest)
-Assigned To: +Assigned To: kguest
 [2011-09-28 00:49 UTC] kguest (Ken Guest)
-Type: Feature/Change Request +Type: Bug
this should be classified more as a bug, than a feature request.
 [2011-09-28 02:41 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/ Fixed in release 0.2.1; as released just now. References are: http://www.austlii.edu.au/au/legis/wa/consol_act/pabha1972203.txt/cgi-bin/download.cgi/download/au/legis/wa/consol_act/pabha1972203.txt http://www.slp.wa.gov.au/gazette/gg.nsf/SearchAll/BD55727117B5A888482577F400118199?openDocument