From: <ji...@us...> - 2006-07-25 00:57:23
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31518/phpicalendar/functions Modified Files: ical_parser.php Log Message: change ical_parser year increment Index: ical_parser.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v retrieving revision 1.213 retrieving revision 1.214 diff -C2 -d -r1.213 -r1.214 *** ical_parser.php 3 May 2006 04:26:25 -0000 1.213 --- ical_parser.php 25 Jul 2006 00:57:19 -0000 1.214 *************** *** 301,304 **** --- 301,305 ---- } // 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)) { *************** *** 701,705 **** // 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)); } else { $year = date('Y', $next_range_time); --- 702,706 ---- // Make sure the month & year used is within the start/end_range. if ($month < date('m', $next_range_time)) { ! $year = date('Y', $next_range_time); } else { $year = date('Y', $next_range_time); |