Fixed that datetimepickers not considered the config.php setting CALENDAR_FIRST_DAY_OF_WEEK (closes #334)

This commit is contained in:
Bernd Bestel
2019-09-18 18:46:07 +02:00
parent ce12202c86
commit 991706920f
2 changed files with 10 additions and 0 deletions

View File

@@ -535,3 +535,12 @@ function LoadImagesLazy()
});
}
LoadImagesLazy();
if (!Grocy.CalendarFirstDayOfWeek.isEmpty())
{
moment.updateLocale(moment.locale(), {
week: {
dow: Grocy.CalendarFirstDayOfWeek
}
});
}