give bocalupdate alarms a tolerance of 10seconds to make alarms possible that happen directly on the event start time

This commit is contained in:
Christian Binder 2006-11-04 18:37:05 +00:00
parent e5c82ae4db
commit a7d25f71df

View File

@ -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;
}