From a7d25f71df44b51c7ef05a89e28a8d1d23ed75a9 Mon Sep 17 00:00:00 2001 From: Christian Binder Date: Sat, 4 Nov 2006 18:37:05 +0000 Subject: [PATCH] give bocalupdate alarms a tolerance of 10seconds to make alarms possible that happen directly on the event start time --- calendar/inc/class.bocalupdate.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.bocalupdate.inc.php b/calendar/inc/class.bocalupdate.inc.php index 63c2479f77..a942d84059 100644 --- a/calendar/inc/class.bocalupdate.inc.php +++ b/calendar/inc/class.bocalupdate.inc.php @@ -418,8 +418,8 @@ class bocalupdate extends bocal } $version = $GLOBALS['egw_info']['apps']['calendar']['version']; - // ignore events in the past - if($old_event != False && $this->date2ts($old_event['start']) < $this->now_su) + // ignore events in the past (give a tolerance of 10 seconds for the script) + if($old_event != False && $this->date2ts($old_event['start']) < ($this->now_su - 10)) { return False; }