diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2006-02-08 09:15:49 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2006-02-08 09:15:49 +0000 |
commit | 9e529c5111d2575dd60a559f33bc2048e2cf6e4e (patch) | |
tree | 71a0061fc9131016aa5b5154331d06572409ba36 /rss | |
parent | 34649e37d212924e3cf48bba8b0cda31fdf4f7e9 (diff) | |
download | phpicalendar-9e529c5111d2575dd60a559f33bc2048e2cf6e4e.tar.gz phpicalendar-9e529c5111d2575dd60a559f33bc2048e2cf6e4e.tar.bz2 phpicalendar-9e529c5111d2575dd60a559f33bc2048e2cf6e4e.zip |
Changes to improve compatibility with some installations
Diffstat (limited to 'rss')
-rw-r--r-- | rss/rss.php | 6 |
1 files changed, 3 insertions, 3 deletions
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 = ""; |