Fixed issue with translation breaking the calendar page (#931).

This commit is contained in:
Alex Tselegidis 2020-11-16 11:09:31 +02:00
parent 6f8e971673
commit bbaac53308

View file

@ -1245,7 +1245,8 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
var calendarDate = calendarView.start.clone();
while (calendarDate < calendarView.end) {
weekdayName = calendarDate.format('dddd').toLowerCase();
weekdayNumber = parseInt(calendarDate.format('d'))
weekdayName = GeneralFunctions.getWeekdayName(weekdayNumber);
weekdayDate = calendarDate.format('YYYY-MM-DD');
// Add working plan exception event.