[FIX] web_calendar: Instantiate moment correctly
Without instantiating the moment it will throw errors to some users. Desired behavior after PR is merged: No longer undefined errors for end users Fixes #18994 Fixes #18618
This commit is contained in:
committed by
Christophe Matthieu
parent
eb7a098592
commit
df124080b6
@@ -54,7 +54,7 @@ function get_fc_defaultOptions() {
|
||||
monthNamesShort: moment.monthsShort(),
|
||||
dayNames: moment.weekdays(),
|
||||
dayNamesShort: moment.weekdaysShort(),
|
||||
firstDay: moment._locale._week.dow,
|
||||
firstDay: moment()._locale._week.dow,
|
||||
weekNumberCalculation: function(date) {
|
||||
return moment(date).week();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user