A local-first personal finance app
Custom Reports bug fix (#2556)
Neilb5f617dbe515
diff --git a/packages/desktop-client/src/components/reports/reportRanges.ts b/packages/desktop-client/src/components/reports/reportRanges.tsindex 52a79c1d21..588c56291e 100644--- a/packages/desktop-client/src/components/reports/reportRanges.ts+++ b/packages/desktop-client/src/components/reports/reportRanges.ts@@ -48,7 +48,7 @@ export function validateEnd(let dateEnd;switch (interval) {case 'Monthly':- dateEnd = end + '-31';+ dateEnd = monthUtils.getMonthEnd(end + '-01');subDays = 180;break;case 'Yearly':diff --git a/upcoming-release-notes/2556.md b/upcoming-release-notes/2556.mdnew file mode 100644index 0000000000..62f0799fd4--- /dev/null+++ b/upcoming-release-notes/2556.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [carkom]+---++Custom Reports: Fix bug where month endDate is saving as a non-date variable.