From 60d9fd1f559f23a7b40b8426cac619106aac6991 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Tue, 13 May 2025 17:45:20 -0500 Subject: [PATCH] fix(open orders): made a change to correct the date being off by 1 day --- .../src/utils/tableData/openorders/ooColumns.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/src/utils/tableData/openorders/ooColumns.tsx b/frontend/src/utils/tableData/openorders/ooColumns.tsx index 8713a0a..6452ccb 100644 --- a/frontend/src/utils/tableData/openorders/ooColumns.tsx +++ b/frontend/src/utils/tableData/openorders/ooColumns.tsx @@ -1,5 +1,5 @@ import { ColumnDef } from "@tanstack/react-table"; -import { format } from "date-fns"; +//import { format } from "date-fns-tz"; // This type is used to define the shape of our data. // You can use a Zod schema here if you want. @@ -44,12 +44,14 @@ export const openOrderColumns: ColumnDef[] = [ header: "DeliveryDate", cell: ({ row }) => { if (row.getValue("deliveryDate")) { - const correctDate = format( - row.getValue("deliveryDate"), - "M/d/yyyy hh:mm" - ); + // const correctDate = format( + // row.getValue("deliveryDate"), + // "M/d/yyyy hh:mm" + // ); return ( -
{correctDate}
+
+ {row.getValue("deliveryDate")} +
); } },