From 0ce343d84252edf67597dc590f14e97f73073184 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 27 Apr 2007 10:04:33 +0000 Subject: [PATCH] "fix for bug #334: 2-weekly repeating event over daylight saving is wrong" --- calendar/inc/class.bocal.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.bocal.inc.php b/calendar/inc/class.bocal.inc.php index 89f87bff05..e9991de4dd 100644 --- a/calendar/inc/class.bocal.inc.php +++ b/calendar/inc/class.bocal.inc.php @@ -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; }