From 2236c4fa79140d74dfb7a2ca0efcf31bee03dfd2 Mon Sep 17 00:00:00 2001 From: Florian Dupret <34862846+sephrat@users.noreply.github.com> Date: Sat, 24 Apr 2021 09:46:20 +0200 Subject: [PATCH] Fix quick week not starting on Monday for UTC+x --- frontend/src/components/MealPlan/MealPlanNew.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/MealPlan/MealPlanNew.vue b/frontend/src/components/MealPlan/MealPlanNew.vue index a3fe90949..933411da9 100644 --- a/frontend/src/components/MealPlan/MealPlanNew.vue +++ b/frontend/src/components/MealPlan/MealPlanNew.vue @@ -227,7 +227,7 @@ export default { "sat", ].indexOf(dayName.slice(0, 3).toLowerCase()); if (dayOfWeek < 0) return; - refDate.setHours(0, 0, 0, 0); + refDate.setUTCHours(0, 0, 0, 0); refDate.setDate( refDate.getDate() + +!!excludeToday +