From: <ji...@us...> - 2008-12-24 08:49:44
|
Update of /cvsroot/phpicalendar/phpicalendar/functions/parse In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20780/functions/parse Modified Files: end_vevent.php Log Message: fix starting date range for freq weekly Index: end_vevent.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/parse/end_vevent.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** end_vevent.php 20 Dec 2008 03:22:54 -0000 1.10 --- end_vevent.php 24 Dec 2008 08:49:37 -0000 1.11 *************** *** 230,234 **** if(isset($until) && $end_range_unixtime > $until_unixtime) $end_range_unixtime = $until_unixtime; ! if($freq_type == 'year') $end_range_unixtime += 366*24*60*60; if(!isset($rrule_array['FREQ']) && isset($end_date)){ $end_range_unixtime = strtotime($end_date); --- 230,243 ---- if(isset($until) && $end_range_unixtime > $until_unixtime) $end_range_unixtime = $until_unixtime; ! ! switch ($freq_type){ ! case 'week': ! # need to get the first value of $next_range_unixtime onto the right day of the week ! $next_range_unixtime = strtotime("this ".date("D", $start_date_unixtime), $next_range_unixtime); ! break; ! case 'year': ! $end_range_unixtime += 366*24*60*60; ! break; ! } if(!isset($rrule_array['FREQ']) && isset($end_date)){ $end_range_unixtime = strtotime($end_date); |