From bbaac53308dff05b40b8fcc3f6cb22fad4892cef Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 16 Nov 2020 11:09:31 +0200 Subject: [PATCH] Fixed issue with translation breaking the calendar page (#931). --- assets/js/backend_calendar_default_view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/backend_calendar_default_view.js b/assets/js/backend_calendar_default_view.js index aaca4e7d..c29558b5 100755 --- a/assets/js/backend_calendar_default_view.js +++ b/assets/js/backend_calendar_default_view.js @@ -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.