mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
* Calendar: iCal import via mime-registry (clicking on iCal file in filemanager) displayed event in server- instead of user-time
This commit is contained in:
parent
d3cd7ea65b
commit
5f284abfdc
@ -773,7 +773,7 @@ class calendar_bo
|
||||
foreach ($events as &$event)
|
||||
{
|
||||
// convert timezone id of event to tzid (iCal id like 'Europe/Berlin')
|
||||
if (!$event['tz_id'] || !($event['tzid'] = calendar_timezones::id2tz($event['tz_id'])))
|
||||
if (empty($event['tzid']) && (!$event['tz_id'] || !($event['tzid'] = calendar_timezones::id2tz($event['tz_id']))))
|
||||
{
|
||||
$event['tzid'] = egw_time::$server_timezone->getName();
|
||||
}
|
||||
|
@ -1135,6 +1135,9 @@ class calendar_uiforms extends calendar_ui
|
||||
}
|
||||
else
|
||||
{
|
||||
// as icaltoegw returns timestamps in server-time, we have to convert them here to user-time
|
||||
$this->bo->db2data($events, 'ts');
|
||||
|
||||
$event = array_shift($events);
|
||||
if (($existing_event = $this->bo->read($event['uid'])))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user