Skip to content

Commit

Permalink
(Possibly) Fix failing unit test on Travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jan 21, 2015
1 parent 00ff8e5 commit 4727d6d
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -153,8 +153,11 @@ public function fromvEvent($vCal)
}

$tz = new Horde_Mapi_Timezone();
$this->timezone = $tz->getSyncTZFromOffsets(
$tz->getOffsetsFromDate(new Horde_Date()));
try {
$this->timezone = $tz->getSyncTZFromOffsets(
$tz->getOffsetsFromDate(new Horde_Date($this->_vEvent->getAttribute('DTSTART')))
);
} catch (Horde_Icalendar_Exception $e) {}
$this->alldayevent = (int)$this->_isAllDay();
}

Expand Down

0 comments on commit 4727d6d

Please sign in to comment.