From: Michael Date: Sun, 25 Dec 2022 22:45:34 +0000 (+0000) Subject: Issue 12524: Fix first day of week X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=46fdf696ee47f3b71e8c7a77690998b5c9700c76;p=friendica.git Issue 12524: Fix first day of week --- diff --git a/src/Module/Settings/Display.php b/src/Module/Settings/Display.php index 0766d2a13e..87134103fe 100644 --- a/src/Module/Settings/Display.php +++ b/src/Module/Settings/Display.php @@ -219,7 +219,7 @@ class Display extends BaseSettings ]; - $first_day_of_week = $this->pConfig->get($uid, 'system', 'first_day_of_week', 0); + $first_day_of_week = $this->pConfig->get($uid, 'calendar', 'first_day_of_week', 0); $weekdays = [ 0 => $this->t('Sunday'), 1 => $this->t('Monday'), diff --git a/src/Util/Temporal.php b/src/Util/Temporal.php index f6805a9222..24d7d7e23d 100644 --- a/src/Util/Temporal.php +++ b/src/Util/Temporal.php @@ -238,7 +238,7 @@ class Temporal bool $required = false): string { // First day of the week (0 = Sunday) - $firstDay = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'system', 'first_day_of_week', 0); + $firstDay = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'calendar', 'first_day_of_week', 0); $lang = substr(DI::l10n()->getCurrentLang(), 0, 2);