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-10-16 19:50:22 +00:00
parent 1cd56a8199
commit 11db342084

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