diff --git a/calendar/inc/class.calendar_boupdate.inc.php b/calendar/inc/class.calendar_boupdate.inc.php index 1dea3d12b0..576a9e1ba4 100644 --- a/calendar/inc/class.calendar_boupdate.inc.php +++ b/calendar/inc/class.calendar_boupdate.inc.php @@ -1467,6 +1467,8 @@ class calendar_boupdate extends calendar_bo $this->enum_groups($expanded); foreach($event['alarm'] as $id => &$alarm) { + $alarm['time'] = $this->date2ts($alarm['time'],true); // user to server-time + // remove alarms belonging to not longer existing or rejected participants if ($alarm['owner'] && isset($expanded['participants'])) { @@ -1481,7 +1483,6 @@ class calendar_boupdate extends calendar_bo //error_log(__LINE__.': '.__METHOD__."(".array2string($event).") deleting alarm=".array2string($alarm).", $status=".array2string($alarm)); } } - $alarm['time'] = $this->date2ts($alarm['time'],true); // user to server-time } } // update all existing alarm times, in case alarm got moved and alarms are not include in $event