|
From: <cl...@us...> - 2004-05-10 19:10:19
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8558/functions Modified Files: ical_parser.php Log Message: Fix for byday in monthly. Index: ical_parser.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v retrieving revision 1.152 retrieving revision 1.153 diff -C2 -d -r1.152 -r1.153 *** ical_parser.php 27 Apr 2004 22:38:02 -0000 1.152 --- ical_parser.php 10 May 2004 19:09:54 -0000 1.153 *************** *** 483,487 **** foreach($byday as $day) { ereg ('([-\+]{0,1})?([0-9]{1})?([A-Z]{2})', $day, $byday_arr); ! $nth = $byday_arr[2]-1; $on_day = two2threeCharDays($byday_arr[3]); $on_day_num = two2threeCharDays($byday_arr[3],false); --- 483,492 ---- foreach($byday as $day) { ereg ('([-\+]{0,1})?([0-9]{1})?([A-Z]{2})', $day, $byday_arr); ! //Added for 2.0 when no modifier is set ! if ($byday_arr[2] != '') { ! $nth = $byday_arr[2]-1; ! } else { ! $nth = 0; ! } $on_day = two2threeCharDays($byday_arr[3]); $on_day_num = two2threeCharDays($byday_arr[3],false); *************** *** 833,837 **** $data = '1971'.$dtstart_check[2].$dtstart_check[3]; } - echo $data.'<br>'; $allday_start = $data; $start_date = $allday_start; --- 838,841 ---- |