aboutsummaryrefslogtreecommitdiffstats
path: root/week.php
diff options
context:
space:
mode:
authorWesley Miaw <josuah@users.sourceforge.net>2005-12-01 06:15:28 +0000
committerWesley Miaw <josuah@users.sourceforge.net>2005-12-01 06:15:28 +0000
commite5e49f470c5e4cdcf55671416ea7297177d139ff (patch)
tree2c6233826d3571047cd67a0654332b9fde761860 /week.php
parent036239864e3eb20ebbea3343b8397bc8df030ed8 (diff)
downloadphpicalendar-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.php2
1 files changed, 1 insertions, 1 deletions
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";

© 2014-2024 Faster IT GmbH | imprint | privacy policy