"fix for bug #334: 2-weekly repeating event over daylight saving is wrong"

This commit is contained in:
Ralf Becker 2007-04-27 10:04:33 +00:00
parent 47763981e9
commit 0ce343d842

View File

@ -763,7 +763,8 @@ class bocal
}
break;
case MCAL_RECUR_WEEKLY:
if (floor(($search_beg_day - $event_start_daybegin_ts)/WEEK_s) % $freq)
// we use round(,1) to deal with changing daylight saving
if (floor(round(($search_beg_day - $event_start_daybegin_ts)/WEEK_s,1)) % $freq)
{
continue;
}