From 920bccb45e6c5149550dc1bb24cb3c950403cb15 Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Tue, 1 Mar 2022 09:53:23 +0100 Subject: [PATCH] Fixed first day missing in monthly stats --- src/store/modules/juggl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/juggl.js b/src/store/modules/juggl.js index 00ce8eb..a6a3fd5 100644 --- a/src/store/modules/juggl.js +++ b/src/store/modules/juggl.js @@ -254,7 +254,7 @@ export const juggl = { // Month in date object goes from 0 - 11 var options = { - from: new Date(startYear, startMonth - 1, 2), + from: new Date(startYear, startMonth - 1, 1), until: new Date(endYear, endMonth, 0) // 0 leads to the last day of the previous month };