From c60246816752a18ba37b8f3508799acd17686b30 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Fri, 2 Jan 2009 07:12:12 +0000 Subject: add download event to event popup --- functions/parse/end_vevent.php | 3 +++ functions/parse/parse_tzs.php | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'functions/parse') diff --git a/functions/parse/end_vevent.php b/functions/parse/end_vevent.php index 9f2e603..addca3a 100644 --- a/functions/parse/end_vevent.php +++ b/functions/parse/end_vevent.php @@ -334,10 +334,13 @@ foreach($recur_data as $recur_data_unixtime) { 'class' => $class, 'spans_day' => $spans_day, 'location' => $location, + 'categories' => $vtodo_categories, 'organizer' => serialize($organizer), 'attendee' => serialize($attendee), 'calnumber' => $calnumber, 'calname' => $actual_calname, + 'timezone' => $start_tz, + 'other' => trim($other), 'geo' => $geo, 'url' => $url, 'recur' => $recur diff --git a/functions/parse/parse_tzs.php b/functions/parse/parse_tzs.php index 8b02cb5..fb250b2 100644 --- a/functions/parse/parse_tzs.php +++ b/functions/parse/parse_tzs.php @@ -43,9 +43,10 @@ while (!feof($ifile)) { $is_daylight = false; break; case 'END:VTIMEZONE': + if (!isset($offset_d) && isset($offset_s)) $offset_d = $offset_s; $tz_array[$tz_id] = array( - 0 => $offset_s, - 1 => $offset_d, + 0 => @$offset_s, + 1 => @$offset_d, 'dt_start' => @$begin_daylight, 'st_start' => @$begin_std, 'st_name' => @$st_name, -- cgit v1.2.3