Skip to content

Commit

Permalink
js months start from 0
Browse files Browse the repository at this point in the history
  • Loading branch information
tswfi committed Apr 4, 2023
1 parent 6db31be commit 59a1b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/static/www/graphs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 59a1b90

Please sign in to comment.