PHP iCalendar
PHP iCalendar can parse and render iCal formatted files. Apple’s developer docs, amusingly enough, offer a few more hints along those lines.
photo: keflavik airport
PHP iCalendar can parse and render iCal formatted files. Apple’s developer docs, amusingly enough, offer a few more hints along those lines.
PHP iCalendar solves a couple problems I’m working on, but I needed a solution to fix the duration display for Gcal-managed ICS calendars.
As it turns out, a fix can be found in the forums, and the trick is to insert the following code in functions/ical_parser.php.
case ‘DURATION’:
if (($first_duration == TRUE) && (!stristr($field, ‘=DURATION’))) {
ereg (’^P([0-9]{1,2}[W])?([0-9]{1,2}[D])?([T]{0,1})?([0-9]{1,2}[H])?([0-9]{1,2}[M])?([0-9]{1,}[S])?’, $data, [...]