From 6fd3e9b6ae4a37a92e7d86072a14d146ba5a1ae8 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Tue, 25 Jul 2006 00:57:19 +0000 Subject: change ical_parser year increment --- functions/ical_parser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'functions/ical_parser.php') diff --git a/functions/ical_parser.php b/functions/ical_parser.php index e8092c6..af1da64 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -300,6 +300,7 @@ foreach ($cal_filelist as $cal_key=>$filename) { $end = strtotime('+1 day', $start); } // Changed for 1.0, basically write out the entire event if it starts while the array is written. + # while loop handles multi-day allday events to write separate master_array elements for each day. if (($start < $mArray_end) && ($start < $end)) { while (($start != $end) && ($start < $mArray_end)) { $start_date2 = date('Ymd', $start); @@ -700,7 +701,7 @@ foreach ($cal_filelist as $cal_key=>$filename) { foreach($bymonth as $month) { // Make sure the month & year used is within the start/end_range. if ($month < date('m', $next_range_time)) { - $year = date('Y', strtotime('+1 years', $next_range_time)); + $year = date('Y', $next_range_time); } else { $year = date('Y', $next_range_time); } -- cgit v1.2.3