From 59a1b90ef703d60cdef69cb47b373866e734aae9 Mon Sep 17 00:00:00 2001 From: Tatu Wikman Date: Tue, 4 Apr 2023 14:43:32 +0300 Subject: [PATCH] js months start from 0 --- www/static/www/graphs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/static/www/graphs.js b/www/static/www/graphs.js index 2a0a91c9..87d7f2c8 100644 --- a/www/static/www/graphs.js +++ b/www/static/www/graphs.js @@ -6,7 +6,7 @@ async function renderTransactionsGraph() { // one year back startDate.setFullYear(startDate.getFullYear() - 1); // january - startDate.setMonth(1); + startDate.setMonth(0); // and from the first day of the month startDate.setDate(1);