Fix for holiday calculator for US.

This commit is contained in:
skeeter 2001-07-09 00:11:09 +00:00
parent 01e19687ef
commit a2c95c9994

View File

@ -27,7 +27,7 @@ class holidaycalc {
} }
else else
{ {
$ld = $datetime->days_in_month($holiday['month'],$this->year); $ld = $datetime->days_in_month($holiday['month'],$year);
$dow = $datetime->day_of_week($year,$holiday['month'],$ld); $dow = $datetime->day_of_week($year,$holiday['month'],$ld);
$day = $ld - ($dow - $holiday['dow']) % 7 ; $day = $ld - ($dow - $holiday['dow']) % 7 ;
} }