mirror of https://github.com/Lissy93/dashy.git
🔁 Merge pull request #418 from XertDev/FIX/public-holidays-query-format
Query date formatting in PublicHolidays widget
This commit is contained in:
commit
b4fb238243
|
@ -47,12 +47,12 @@ export default {
|
||||||
},
|
},
|
||||||
startDate() {
|
startDate() {
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
return `${now.getDate()}-${now.getMonth()}-${now.getFullYear()}`;
|
return `${now.getDate()}-${now.getMonth() + 1}-${now.getFullYear()}`;
|
||||||
},
|
},
|
||||||
endDate() {
|
endDate() {
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
const then = new Date((now.setMonth(now.getMonth() + this.monthsToShow)));
|
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() {
|
endpoint() {
|
||||||
return `${widgetApiEndpoints.holidays}`
|
return `${widgetApiEndpoints.holidays}`
|
||||||
|
|
Loading…
Reference in New Issue