From a3fcfdb39c5a0e5489b8f06f668c0cc09bfa9e8b Mon Sep 17 00:00:00 2001 From: Yuri Salimovskiy Date: Mon, 8 May 2023 13:20:21 +0300 Subject: [PATCH] week_start setting --- docs/control-panel/settings/general.md | 3 +++ docs/development/models/member.md | 1 + docs/general/system-configuration-overrides.md | 15 +++++++++++++++ 3 files changed, 19 insertions(+) diff --git a/docs/control-panel/settings/general.md b/docs/control-panel/settings/general.md index 8b5e1757c..b2a552f58 100755 --- a/docs/control-panel/settings/general.md +++ b/docs/control-panel/settings/general.md @@ -53,6 +53,9 @@ Specify the default timezone for your site. All dates and times displayed by Exp Specify the default date format for your site, and whether your site should display times in a 24-hour format or a 12-hour format with AM and PM. This is the format the Control Panel uses for displaying dates and for date input. +### Week start +The day on which the new week starts. This will be used when displaying calendars + ### Show seconds? Specify whether your site should display seconds in times. diff --git a/docs/development/models/member.md b/docs/development/models/member.md index d2693b055..3ed44887d 100644 --- a/docs/development/models/member.md +++ b/docs/development/models/member.md @@ -74,6 +74,7 @@ lang: php - `timezone` - `time_format` - `date_format` +- `week_start` - `include_seconds` - `profile_theme` - `forum_theme` diff --git a/docs/general/system-configuration-overrides.md b/docs/general/system-configuration-overrides.md index a75db4de0..bea4195df 100755 --- a/docs/general/system-configuration-overrides.md +++ b/docs/general/system-configuration-overrides.md @@ -3235,6 +3235,21 @@ Example Usage: **Also found in CP:** `Settings --> Security & Privacy`: [Website Session Type](control-panel/settings/security-privacy.md#website-session-type) +### `week_start` + +Set the day on which the new week starts. If [allow_member_localization](#allow_member_localization) is enabled and a member has their own localization preference set, that will override this setting. + +| Value | Description | +| -------- | ---------------- | +| friday | Friday | +| saturday | Saturday | +| sunday | Sunday (default) | +| monday | Monday | + +Example Usage: + + $config['week_start'] = 'monday'; + ### `word_separator` Specify the character the system will use to replace spaces when auto-generating a URL title based on the entry's title.