29 $name_underscore = str_replace(
'/',
'_', $tz_name);
31 if (is_link(
ZONEINFO .
'/' . $tz_name)) {
37 exec(
TZ_CONVERT .
' -o Services/Calendar/zoneinfo/' . $name_underscore .
'.tmp' .
' ' . $name);
39 $reader = fopen(
'components/ILIAS/Calendar/zoneinfo/' . $name_underscore .
'.tmp',
'r');
40 $writer = fopen(
'components/ILIAS/Calendar/zoneinfo/' . $name_underscore .
'.ics',
'w');
43 while ($line = fgets($reader)) {
48 fputs($writer,
'TZID:' . $tz_name .
"\n");
50 if (substr($line, 0, 13) ===
'END:VCALENDAR') {
53 fputs($writer, $line);
59 unlink(
'components/ILIAS/Calendar/zoneinfo/' . $name_underscore .
'.tmp');
61 #echo $name_underscore.' <br />';
static _getShortTimeZoneList()
get short timezone list
exit
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...