* Calendar - Fix alarms set in different timezone from server moved when saving event

This commit is contained in:
nathangray 2017-12-06 13:47:54 -07:00
parent 594bd63181
commit 33110fc2cd

View File

@ -1347,6 +1347,10 @@ class calendar_boupdate extends calendar_bo
}
}
}
foreach($event['alarm'] as $id => &$alarm)
{
$alarm['time'] = $this->date2ts($alarm['time'],true); // user to server-time
}
}
// you should always update modification time (ctag depends on it!)
@ -1616,7 +1620,7 @@ class calendar_boupdate extends calendar_bo
);
// Reset cached event
static::$cached_event = array();
if (isset($status2msg[$status]) && !$skip_notification)
{
if (!is_array($event)) $event = $this->read($cal_id);