From db2af4b79d91b6d79a0a1b43394bf88def562cbe Mon Sep 17 00:00:00 2001 From: josh Date: Mon, 4 May 2026 19:07:35 -0400 Subject: [PATCH] Fix dashboard date showing yesterday due to UTC parsing Date-only ISO strings are parsed as UTC midnight, which displays as the previous day in US timezones. Append T00:00:00 to force local time interpretation. Co-Authored-By: Claude Opus 4.6 --- web/src/views/Dashboard.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/views/Dashboard.tsx b/web/src/views/Dashboard.tsx index 3c8fd42..9b64b26 100644 --- a/web/src/views/Dashboard.tsx +++ b/web/src/views/Dashboard.tsx @@ -40,7 +40,8 @@ export function Dashboard({ const lowBulk = stats.lowStockBulk; const lowDiscrete = stats.lowStockDiscreteGroups; - const todayDate = new Date(data.today || TODAY_STR); + const todayStr = data.today || TODAY_STR; + const todayDate = new Date(todayStr + "T00:00:00"); const greetingDate = todayDate.toLocaleDateString("en-US", { weekday: "long", month: "long",