From dca853e96bbf5dd6a48a0b1da53b598608289fa8 Mon Sep 17 00:00:00 2001 From: Jennie Robinson Faber Date: Sat, 23 Aug 2025 15:16:16 +0100 Subject: [PATCH] Normalize transaction dates to the start of the day in projectedTransactions computation --- app/pages/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/pages/index.vue b/app/pages/index.vue index 054dc8f..f54fc12 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -483,6 +483,7 @@ const projectedTransactions = computed(() => { const transactions = cashFlow.filteredTransactions.value; const projectedTransactions = []; const today = new Date(); + today.setHours(0, 0, 0, 0); // Normalize to start of day const endDate = new Date(today.getTime() + 13 * 7 * 24 * 60 * 60 * 1000); // 13 weeks from now transactions.forEach((transaction) => { @@ -550,6 +551,7 @@ const projectedTransactions = computed(() => { } else if (transaction.type === "one-time") { // Include one-time transactions that fall within the next 13 weeks const transactionDate = new Date(transaction.date); + transactionDate.setHours(0, 0, 0, 0); // Normalize to start of day if (transactionDate >= today && transactionDate <= endDate) { projectedTransactions.push({ ...transaction,