protected function addTimezone() { if ($this->getUserSettings()->getExportTimeZoneType() == ilCalendarUserSettings::CAL_EXPORT_TZ_UTC) { return; } $this->writer->addLine('X-WR-TIMEZONE:' . $GLOBALS['ilUser']->getTimeZone()); include_once './Services/Calendar/classes/class.ilCalendarUtil.php'; $tzid_file = ilCalendarUtil::getZoneInfoFile($GLOBALS['ilUser']->getTimeZone()); if (!is_file($tzid_file)) { $tzid_file = ilCalendarUtil::getZoneInfoFile('Europe/Berlin'); } $reader = fopen($tzid_file, 'r'); while ($line = fgets($reader)) { $line = str_replace("\n", '', $line); $this->writer->addLine($line); } }