]> git.mxchange.org Git - friendica.git/commitdiff
Issue 12524: Fix first day of week
authorMichael <heluecht@pirati.ca>
Sun, 25 Dec 2022 22:45:34 +0000 (22:45 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 25 Dec 2022 22:45:34 +0000 (22:45 +0000)
src/Module/Settings/Display.php
src/Util/Temporal.php

index 0766d2a13ea6a3d67f4646fc5e3b38b360067346..87134103fe79c8589f36534d29d5956524182014 100644 (file)
@@ -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'),
index f6805a92224b4eaf8eda09789bf04b37edff1352..24d7d7e23d31837cf489c8316fc8feb113350023 100644 (file)
@@ -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);