Merge pull request #3059 from dpalou/MOBILE-3833

Mobile 3833
main
Pau Ferrer Ocaña 2022-01-19 13:11:04 +01:00 committed by GitHub
commit 2eea8a3413
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ export class AddonCalendarHelperProvider {
): Promise<{ daynames: Partial<AddonCalendarDayName>[]; weeks: AddonCalendarWeek[] }> {
const site = await CoreSites.getSite(siteId);
// Get starting week day user preference, fallback to site configuration.
let startWeekDayStr = site.getStoredConfig('calendar_startwday');
let startWeekDayStr = site.getStoredConfig('calendar_startwday') || '1';
startWeekDayStr = await CoreConfig.get(AddonCalendarProvider.STARTING_WEEK_DAY, startWeekDayStr);
const startWeekDay = parseInt(startWeekDayStr, 10);

Binary file not shown.

After

Width:  |  Height:  |  Size: 514 B