diff --git a/frontend/src/utils/tableData/production/ocpLogs/ocpLogColumns.tsx b/frontend/src/utils/tableData/production/ocpLogs/ocpLogColumns.tsx index 9a265b6..b2a8587 100644 --- a/frontend/src/utils/tableData/production/ocpLogs/ocpLogColumns.tsx +++ b/frontend/src/utils/tableData/production/ocpLogs/ocpLogColumns.tsx @@ -1,6 +1,6 @@ import { Button } from "@/components/ui/button"; -import { fixTime } from "@/utils/fixTime"; import { ColumnDef } from "@tanstack/react-table"; +import { format } from "date-fns-tz"; import { Trash } from "lucide-react"; // This type is used to define the shape of our data. @@ -38,9 +38,11 @@ export const ocpColumns = ( header: "Error Date", cell: ({ row }) => { if (row.getValue("created_at")) { - const correctDate = fixTime(row.getValue("created_at")); + const correctDate: any = row.getValue("created_at"); + const strippedDate = correctDate.replace("Z", ""); // Remove Z + const formattedDate = format(strippedDate, "MM/dd/yyyy HH:mm"); return ( -
{correctDate}
+
{formattedDate}
); } },