Fix ical export with (invalid) timezone +00:00
This commit is contained in:
parent
ab3f58b888
commit
1f9f09fe09
1 changed files with 2 additions and 1 deletions
|
@ -449,7 +449,8 @@ class calendar_ical
|
|||
else {
|
||||
// <ATTR>;TZID=Europe/Zurich:20120706T210000
|
||||
$tz = $dt->getTimezone();
|
||||
$tzid = $tz && $tz->getName() != 'UTC' ? ';TZID=' . $tz->getName() : '';
|
||||
$tzname = $tz ? $tz->getName() : null;
|
||||
$tzid = $tzname && $tzname != 'UTC' && $tzname != '+00:00' ? ';TZID=' . $tzname : '';
|
||||
return $attr . $tzid . ':' . $dt->format('Ymd\THis' . ($tzid ? '' : '\Z'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue