From: <ji...@us...> - 2006-02-08 09:15:57
|
Update of /cvsroot/phpicalendar/phpicalendar/rss In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24576/phpicalendar/rss Modified Files: rss.php Log Message: Changes to improve compatibility with some installations Index: rss.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/rss/rss.php,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** rss.php 30 Nov 2005 17:05:56 -0000 1.34 --- rss.php 8 Feb 2006 09:15:49 -0000 1.35 *************** *** 35,39 **** break; case 'week': ! $fromdate = dateOfWeek($getdate, $week_start_day); $todate = $fromdate + 6; $theview = $lang['l_week']." of ".date('n/d/Y',strtotime($fromdate)); --- 35,39 ---- break; case 'week': ! $fromdate = dateOfWeek($getdate, 'Sunday'); $todate = $fromdate + 6; $theview = $lang['l_week']." of ".date('n/d/Y',strtotime($fromdate)); *************** *** 43,47 **** $fromdate = ($parse_month *100) + 1; $nextmonth = ($parse_month +1) * 100; #should give the 0th day of following month ! $todate = date('Ymd',strtotime($nextmonth)); $theview = date('M Y',strtotime($fromdate)); break; --- 43,47 ---- $fromdate = ($parse_month *100) + 1; $nextmonth = ($parse_month +1) * 100; #should give the 0th day of following month ! $todate = date('Ymd',strtotime($nextmonth+1)); $theview = date('M Y',strtotime($fromdate)); break; *************** *** 79,83 **** default: #default to week ! $fromdate = dateOfWeek($getdate, $week_start_day); $todate = $fromdate + 6; $theview = ""; --- 79,83 ---- default: #default to week ! $fromdate = dateOfWeek($getdate, 'Sunday'); $todate = $fromdate + 6; $theview = ""; |