Fix for bug #409624 - Improper handling of daylight savings time changeover

This commit is contained in:
skeeter 2001-03-20 00:45:41 +00:00
parent 9c0412498d
commit 45767449dc

View File

@ -168,7 +168,7 @@ class calendar extends calendar_
5 => 'Sat',
6 => 'Sun'
);
$sday = mktime(0,0,0,$month,$day - ($weekday - 1),$year);
$sday = mktime(2,0,0,$month,$day - ($weekday - 1),$year);
}
else
{
@ -181,7 +181,7 @@ class calendar extends calendar_
5 => 'Fri',
6 => 'Sat'
);
$sday = mktime(0,0,0,$month,$day - $weekday,$year);
$sday = mktime(2,0,0,$month,$day - $weekday,$year);
}
$this->days = $days;