Fixed first day missing in monthly stats

This commit is contained in:
Maximilian Giller 2022-03-01 09:53:23 +01:00
parent ab2b508e98
commit 920bccb45e

View file

@ -254,7 +254,7 @@ export const juggl = {
// Month in date object goes from 0 - 11 // Month in date object goes from 0 - 11
var options = { 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 until: new Date(endYear, endMonth, 0) // 0 leads to the last day of the previous month
}; };