From be6df8714e73e774adf94256d064867c65d99bc0 Mon Sep 17 00:00:00 2001 From: "MSI\\derek" Date: Wed, 16 Jul 2025 12:17:00 +0800 Subject: [PATCH] update --- src/components/PoSearch/PoSearch.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/PoSearch/PoSearch.tsx b/src/components/PoSearch/PoSearch.tsx index 3742893..e7fdc67 100644 --- a/src/components/PoSearch/PoSearch.tsx +++ b/src/components/PoSearch/PoSearch.tsx @@ -15,7 +15,7 @@ import { useSession } from "next-auth/react"; import { defaultPagingController } from "../SearchResults/SearchResults"; import { fetchPoListClient, testing } from "@/app/api/po/actions"; import dayjs from "dayjs"; -import { OUTPUT_DATE_FORMAT } from "@/app/utils/formatUtil"; +import { arrayToDateString } from "@/app/utils/formatUtil"; import arraySupport from "dayjs/plugin/arraySupport"; dayjs.extend(arraySupport); @@ -91,9 +91,10 @@ const PoSearch: React.FC = ({ label: t("OrderDate"), renderCell: (params) => { return ( - dayjs(params.orderDate) - // .add(-1, "month") - .format(OUTPUT_DATE_FORMAT) + // dayjs(params.orderDate) + arrayToDateString(params.orderDate) + // .add(-1, "month") + // .format(OUTPUT_DATE_FORMAT) ); }, },