diff options
author | Wesley Miaw <josuah@users.sourceforge.net> | 2005-12-01 06:15:28 +0000 |
---|---|---|
committer | Wesley Miaw <josuah@users.sourceforge.net> | 2005-12-01 06:15:28 +0000 |
commit | e5e49f470c5e4cdcf55671416ea7297177d139ff (patch) | |
tree | 2c6233826d3571047cd67a0654332b9fde761860 /week.php | |
parent | 036239864e3eb20ebbea3343b8397bc8df030ed8 (diff) | |
download | phpicalendar-e5e49f470c5e4cdcf55671416ea7297177d139ff.tar.gz phpicalendar-e5e49f470c5e4cdcf55671416ea7297177d139ff.tar.bz2 phpicalendar-e5e49f470c5e4cdcf55671416ea7297177d139ff.zip |
Feature #1353342. You can now specify how many days should be
displayed on the week view. All numbers, negative to more than seven,
work with the expected behavior. Thanks to Nicolas Contamin for the
code changes.
Diffstat (limited to 'week.php')
-rw-r--r-- | week.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -17,7 +17,7 @@ $prev_week = date("Ymd", strtotime("-1 week", $unix_time)); $next_day = date('Ymd', strtotime("+1 day", $unix_time)); $prev_day = date('Ymd', strtotime("-1 day", $unix_time)); $start_week_time = strtotime(dateOfWeek($getdate, $week_start_day)); -$end_week_time = $start_week_time + (6 * 25 * 60 * 60); +$end_week_time = $start_week_time + (($week_length - 1) * 25 * 60 * 60); $start_week = localizeDate($dateFormat_week, $start_week_time); $end_week = localizeDate($dateFormat_week, $end_week_time); $display_date = "$start_week - $end_week"; |