Merge branch 'master' of github.com:Lissy93/dashy into FEATURE/more-widgets

This commit is contained in:
Alicia Sykes
2022-01-20 16:37:01 +00:00
30 changed files with 727 additions and 368 deletions

View File

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