From 9e529c5111d2575dd60a559f33bc2048e2cf6e4e Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Wed, 8 Feb 2006 09:15:49 +0000 Subject: Changes to improve compatibility with some installations --- rss/rss.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rss') diff --git a/rss/rss.php b/rss/rss.php index 1d25992..1c18ce5 100644 --- a/rss/rss.php +++ b/rss/rss.php @@ -34,7 +34,7 @@ switch ($rssview){ $theview = $lang['l_day']; break; case 'week': - $fromdate = dateOfWeek($getdate, $week_start_day); + $fromdate = dateOfWeek($getdate, 'Sunday'); $todate = $fromdate + 6; $theview = $lang['l_week']." of ".date('n/d/Y',strtotime($fromdate)); break; @@ -42,7 +42,7 @@ switch ($rssview){ $parse_month = date ("Ym", strtotime($getdate)); $fromdate = ($parse_month *100) + 1; $nextmonth = ($parse_month +1) * 100; #should give the 0th day of following month - $todate = date('Ymd',strtotime($nextmonth)); + $todate = date('Ymd',strtotime($nextmonth+1)); $theview = date('M Y',strtotime($fromdate)); break; case 'year': @@ -78,7 +78,7 @@ switch ($rssview){ break; default: #default to week - $fromdate = dateOfWeek($getdate, $week_start_day); + $fromdate = dateOfWeek($getdate, 'Sunday'); $todate = $fromdate + 6; $theview = ""; -- cgit v1.2.3