| @@ -15,7 +15,7 @@ import { useSession } from "next-auth/react"; | |||||
| import { defaultPagingController } from "../SearchResults/SearchResults"; | import { defaultPagingController } from "../SearchResults/SearchResults"; | ||||
| import { fetchPoListClient, testing } from "@/app/api/po/actions"; | import { fetchPoListClient, testing } from "@/app/api/po/actions"; | ||||
| import dayjs from "dayjs"; | import dayjs from "dayjs"; | ||||
| import { OUTPUT_DATE_FORMAT } from "@/app/utils/formatUtil"; | |||||
| import { arrayToDateString } from "@/app/utils/formatUtil"; | |||||
| import arraySupport from "dayjs/plugin/arraySupport"; | import arraySupport from "dayjs/plugin/arraySupport"; | ||||
| dayjs.extend(arraySupport); | dayjs.extend(arraySupport); | ||||
| @@ -91,9 +91,10 @@ const PoSearch: React.FC<Props> = ({ | |||||
| label: t("OrderDate"), | label: t("OrderDate"), | ||||
| renderCell: (params) => { | renderCell: (params) => { | ||||
| return ( | return ( | ||||
| dayjs(params.orderDate) | |||||
| // .add(-1, "month") | |||||
| .format(OUTPUT_DATE_FORMAT) | |||||
| // dayjs(params.orderDate) | |||||
| arrayToDateString(params.orderDate) | |||||
| // .add(-1, "month") | |||||
| // .format(OUTPUT_DATE_FORMAT) | |||||
| ); | ); | ||||
| }, | }, | ||||
| }, | }, | ||||