Fix quick week not starting on Monday for UTC+x

This commit is contained in:
Florian Dupret 2021-04-24 09:46:20 +02:00
commit 2236c4fa79

View file

@ -227,7 +227,7 @@ export default {
"sat", "sat",
].indexOf(dayName.slice(0, 3).toLowerCase()); ].indexOf(dayName.slice(0, 3).toLowerCase());
if (dayOfWeek < 0) return; if (dayOfWeek < 0) return;
refDate.setHours(0, 0, 0, 0); refDate.setUTCHours(0, 0, 0, 0);
refDate.setDate( refDate.setDate(
refDate.getDate() + refDate.getDate() +
+!!excludeToday + +!!excludeToday +