Re: Bug #6729 [NEW]: Veteran's Day wrong

From: Date: Sat, 11 Feb 2006 22:14:26 +0000
Subject: Re: Bug #6729 [NEW]: Veteran's Day wrong
References: 1  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-3468@lists.php.net to get a copy of this message
Hi, which year is it, that the holiday is erroneously calculated for? All unit tests are passing correctly. 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.


« previous php.pear.qa (#3468) next »