From e18dd626707ae0b2c6a7d15f3988180a0b259b0f Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 17 May 2021 11:00:25 +0200 Subject: [PATCH] Fix calendar day offset --- www/calendar/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/calendar/inner.js b/www/calendar/inner.js index 58262f956..58ad22ac1 100644 --- a/www/calendar/inner.js +++ b/www/calendar/inner.js @@ -119,7 +119,7 @@ define([ }; var getWeekDays = function (large) { - var baseDate = new Date(Date.UTC(2017, 0, 1)); // just a Sunday + var baseDate = new Date(2017, 0, 1); // just a Sunday var weekDays = []; for(var i = 0; i < 7; i++) { weekDays.push(baseDate.toLocaleDateString(undefined, { weekday: 'long' }));