Fix calendar day offset

pull/1/head
yflory 4 years ago
parent 32494fca0c
commit d9b9ca680f

@ -119,7 +119,7 @@ define([
}; };
var getWeekDays = function (large) { 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 = []; var weekDays = [];
for(var i = 0; i < 7; i++) { for(var i = 0; i < 7; i++) {
weekDays.push(baseDate.toLocaleDateString(undefined, { weekday: 'long' })); weekDays.push(baseDate.toLocaleDateString(undefined, { weekday: 'long' }));

Loading…
Cancel
Save