From e5e49f470c5e4cdcf55671416ea7297177d139ff Mon Sep 17 00:00:00 2001 From: Wesley Miaw Date: Thu, 1 Dec 2005 06:15:28 +0000 Subject: 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. --- week.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'week.php') diff --git a/week.php b/week.php index 5c170ad..d863821 100644 --- a/week.php +++ b/week.php @@ -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"; -- cgit v1.2.3