Merge pull request #12528 from annando/issue-12524

Issue 12524: Fix first day of week
This commit is contained in:
Hypolite Petovan 2022-12-25 19:03:26 -05:00 committed by GitHub
commit d8fe7e22b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View 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 = [ $weekdays = [
0 => $this->t('Sunday'), 0 => $this->t('Sunday'),
1 => $this->t('Monday'), 1 => $this->t('Monday'),

View File

@ -238,7 +238,7 @@ class Temporal
bool $required = false): string bool $required = false): string
{ {
// First day of the week (0 = Sunday) // 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); $lang = substr(DI::l10n()->getCurrentLang(), 0, 2);