From 55a84053e213d01060adcc6931552357ae9704eb Mon Sep 17 00:00:00 2001 From: Xert Date: Mon, 10 Jan 2022 21:20:21 +0100 Subject: [PATCH] :bug:Fixes query date formatting in PublicHolidays widget --- src/components/Widgets/PublicHolidays.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Widgets/PublicHolidays.vue b/src/components/Widgets/PublicHolidays.vue index 2c4690e9..4cab3584 100644 --- a/src/components/Widgets/PublicHolidays.vue +++ b/src/components/Widgets/PublicHolidays.vue @@ -47,12 +47,12 @@ export default { }, startDate() { const now = new Date(); - return `${now.getDate()}-${now.getMonth()}-${now.getFullYear()}`; + return `${now.getDate()}-${now.getMonth() + 1}-${now.getFullYear()}`; }, endDate() { const now = new Date(); const then = new Date((now.setMonth(now.getMonth() + this.monthsToShow))); - return `${then.getDate()}-${then.getMonth()}-${then.getFullYear()}`; + return `${then.getDate()}-${then.getMonth() + 1}-${then.getFullYear()}`; }, endpoint() { return `${widgetApiEndpoints.holidays}`