Skip to content

Commit

Permalink
Bug: 13369 Fix exporting ics when event contains exceptions AND expli…
Browse files Browse the repository at this point in the history
…cit timezone data.
  • Loading branch information
mrubinsk committed Jul 29, 2014
1 parent 649d88f commit 6797ab5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kronolith/lib/Event.php
Expand Up @@ -714,8 +714,10 @@ public function toiCalendar($calendar)
$params = array();
if ($this->timezone) {
try {
$tz = $GLOBALS['injector']->getInstance('Horde_Timezone');
$vEvents[] = $tz->getZone($this->timezone)->toVtimezone();
if (!$this->baseid) {
$tz = $GLOBALS['injector']->getInstance('Horde_Timezone');
$vEvents[] = $tz->getZone($this->timezone)->toVtimezone();
}
$params['TZID'] = $this->timezone;
} catch (Horde_Exception $e) {
Horde::log('Unable to locate the tz database.', 'WARN');
Expand Down

0 comments on commit 6797ab5

Please sign in to comment.