From 7fffaa205d3c285501844bc268cfd8ee8fb2ad85 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Mon, 30 Dec 2024 10:30:45 +0100 Subject: [PATCH] ui fix --- src/routes/dark-pool-flow/+page.svelte | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/routes/dark-pool-flow/+page.svelte b/src/routes/dark-pool-flow/+page.svelte index 9b29bc9a..bd5ee2a8 100644 --- a/src/routes/dark-pool-flow/+page.svelte +++ b/src/routes/dark-pool-flow/+page.svelte @@ -398,14 +398,14 @@ } } - const nyseDate = new Date( - data?.getFlowData?.at(0)?.date ?? null, - )?.toLocaleString("en-US", { - month: "short", - day: "numeric", - year: "numeric", - timeZone: "Europe/Berlin", - }); + const nyseDate = data?.getFlowData?.at(0)?.date + ? new Date(data.getFlowData.at(0).date).toLocaleString("en-US", { + month: "short", + day: "numeric", + year: "numeric", + timeZone: "America/New_York", + }) + : null; let rawData = data?.getFlowData?.filter((item) => Object?.values(item)?.every(