FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18878&edit=1

ID: 18878
Updated by: ken@linux.ie
Reported By: aharvey at php dot net
Summary: Queen's Birthday in WA has moved in 2011
Status: Open
Type: Feature/Change Request
Package: Date_Holidays_Australia
Operating System: Irrelevant
Package Version: SVN
PHP Version: Irrelevant
-Assigned To:
+Assigned To: kguest
Roadmap Versions:
New Comment:

-Assigned To:
+Assigned To: kguest



Previous Comments:
------------------------------------------------------------------------

[2011-09-27 19:38:35] aharvey

Added #patch
bug:18878;patch:Date_Holidays_Australia-CHOGM;revision:1317148715;.

------------------------------------------------------------------------

[2011-09-27 19:38:20] aharvey

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"

------------------------------------------------------------------------

Search Discussions

  • Ken at Sep 27, 2011 at 6:48 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=18878&edit=1

    ID: 18878
    Updated by: ken@linux.ie
    Reported By: aharvey at php dot net
    Summary: Queen's Birthday in WA has moved in 2011
    Status: Assigned
    -Type: Feature/Change Request
    +Type: Bug
    Package: Date_Holidays_Australia
    Operating System: Irrelevant
    Package Version: SVN
    PHP Version: Irrelevant
    Assigned To: kguest
    Roadmap Versions:
    New Comment:

    -Type: Feature/Change Request
    +Type: Bug
    this should be classified more as a bug, than a feature request.


    Previous Comments:
    ------------------------------------------------------------------------

    [2011-09-27 20:39:09] kguest

    -Assigned To:
    +Assigned To: kguest


    ------------------------------------------------------------------------

    [2011-09-27 19:38:35] aharvey

    Added #patch
    bug:18878;patch:Date_Holidays_Australia-CHOGM;revision:1317148715;.

    ------------------------------------------------------------------------

    [2011-09-27 19:38:20] aharvey

    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"

    ------------------------------------------------------------------------
  • Ken at Sep 27, 2011 at 8:40 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=18878&edit=1

    ID: 18878
    Updated by: ken@linux.ie
    Reported By: aharvey at php dot net
    Summary: Queen's Birthday in WA has moved in 2011
    -Status: Assigned
    +Status: Closed
    Type: Bug
    Package: Date_Holidays_Australia
    Operating System: Irrelevant
    Package Version: SVN
    PHP Version: Irrelevant
    Assigned To: kguest
    Roadmap Versions:
    New Comment:

    -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


    Previous Comments:
    ------------------------------------------------------------------------

    [2011-09-27 20:49:32] kguest

    -Type: Feature/Change Request
    +Type: Bug
    this should be classified more as a bug, than a feature request.

    ------------------------------------------------------------------------

    [2011-09-27 20:39:09] kguest

    -Assigned To:
    +Assigned To: kguest


    ------------------------------------------------------------------------

    [2011-09-27 19:38:35] aharvey

    Added #patch
    bug:18878;patch:Date_Holidays_Australia-CHOGM;revision:1317148715;.

    ------------------------------------------------------------------------

    [2011-09-27 19:38:20] aharvey

    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"

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 27, '11 at 6:37p
activeSep 27, '11 at 8:40p
posts3
users1
websitepear.php.net

1 user in discussion

Ken: 3 posts

People

Translate

site design / logo © 2022 Grokbase