Re: Re: Bug #6729 [NEW]: Veteran's Day wrong
| From: | Justin Patrin | Date: | Sat, 11 Feb 2006 22:24:59 +0000 |
| Subject: | Re: Re: Bug #6729 [NEW]: Veteran's Day wrong | ||
| References: | 1 2 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-3469@lists.php.net to get a copy of this message | ||
On 2/11/06, Carsten Lucke <luckec@tool-garage.de> wrote:
> Hi,
>
> which year is it, that the holiday is erroneously calculated for? All
> unit tests are passing correctly.
>
Please add a comment to the bug, don't respond to bugs on the list.
> Regards,
> Carsten
>
> seth at pricepages dot org schrieb:
> > From: seth at pricepages dot org
> > Operating system: Mac
> > Package version: 0.15.1
> > PHP version: Irrelevant
> > Package: Date_Holidays
> > Bug Type: Bug
> > Bug description: Veteran's Day wrong
> >
> > Description:
> > ------------
> > Veteran's day is marked incorrectly in the calendar. It
> > looks like the code was copy-pasted, but someone forgot to
> > change most of it.
> >
> > Here are the lines for Veteran's Day in Date/Holidays/
> > Driver/USA.php:
> > $columbusDay = $this->_calcNthMondayInMonth(11,2);
> > $this->_addHoliday('veteransDay',$columbusDay,'Veteran\'s
> > Day');
> >
> > (Which looks suspiciously like Columbus Day...)
> >
> > Veteran's Day should be the 11th day in November.
> >
> > While I'm here, I'll mention that the Christmas Day variable
> > is $tday, which is a little odd... Maybe $cday would be more
> > appropriate, but no harm done.
> >
> >
>
> --
> PEAR QA Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Justin Patrin