Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:bug:Fixes query date formatting in PublicHolidays widget

Xert55a84053e213
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}`