aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.inc.php2
-rw-r--r--functions/template.php5
2 files changed, 4 insertions, 3 deletions
diff --git a/config.inc.php b/config.inc.php
index 9d08520..a2a3dd6 100644
--- a/config.inc.php
+++ b/config.inc.php
@@ -10,7 +10,7 @@ $default_view = 'day'; // Default view for calendars = 'day', 'week', 'mont
$minical_view = 'current'; // Where do the mini-calendars go when clicked? = 'day', 'week', 'month', 'current'
$default_cal = $ALL_CALENDARS_COMBINED; // Exact filename of calendar without .ics. Or set to $ALL_CALENDARS_COMBINED to open all calenders combined into one.
$language = 'English'; // Language support - 'English', 'Polish', 'German', 'French', 'Dutch', 'Danish', 'Italian', 'Japanese', 'Norwegian', 'Spanish', 'Swedish', 'Portuguese', 'Catalan', 'Traditional_Chinese', 'Esperanto', 'Korean'
-$week_start_day = 'Sunday'; // Day of the week your week starts on
+$week_start_day = 'Monday'; // Day of the week your week starts on
$day_start = '0700'; // Start time for day grid
$day_end = '2300'; // End time for day grid
$gridLength = '15'; // Grid distance in minutes for day view, multiples of 15 preferred
diff --git a/functions/template.php b/functions/template.php
index c3aac5a..4b11918 100644
--- a/functions/template.php
+++ b/functions/template.php
@@ -395,7 +395,7 @@ class Page {
preg_match("!<\!-- loop daysofweek on -->(.*)<\!-- loop daysofweek off -->!is", $this->page, $match1);
$loop_dof = trim($match1[1]);
$start_wt = strtotime(dateOfWeek($getdate, $week_start_day));
- $start_day = strtotime($week_start_day);
+ $start_day = strtotime(dateOfWeek($getdate, $week_start_day));
for ($i=0; $i<7; $i++) {
$day_num = date("w", $start_day);
$daylink = date('Ymd', $start_wt);
@@ -724,7 +724,8 @@ class Page {
$fake_getdate_time = strtotime($this_year.'-'.$offset.'-15');
}
- $start_day = strtotime($week_start_day);
+ //$start_day = strtotime($week_start_day);
+ $start_day = strtotime(dateOfWeek($getdate, $week_start_day));
$month_title = localizeDate ($dateFormat_month, $fake_getdate_time);
$month_date = date ('Ymd', $fake_getdate_time);

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