From 0602962a835046812ab25d124c98941a398b7f1e Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Thu, 2 Jan 2025 16:06:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20enddate=20=E5=A2=9E=E5=8A=A0=E6=9C=AC?= =?UTF-8?q?=E6=9C=88=E6=9C=80=E5=90=8E=E4=B8=80=E5=A4=A9=E5=92=8C=E6=97=B6?= =?UTF-8?q?=E9=97=B4=2023:59?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SearchForm.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SearchForm.jsx b/src/components/SearchForm.jsx index 6cf8b6e..a85b64a 100644 --- a/src/components/SearchForm.jsx +++ b/src/components/SearchForm.jsx @@ -39,7 +39,7 @@ const SearchForm = ({ initialValue, onSubmit, onReset, onMounted, confirmText, f referenceNo: { key: "referenceNo", transform: value => value || "" }, dates: [ { key: "startdate", transform: arrVal => (arrVal ? arrVal[0].format(DATE_FORMAT) : "") }, - { key: "enddate", transform: arrVal => (arrVal ? arrVal[1].format(DATE_FORMAT) : "") }, + { key: "enddate", transform: arrVal => (arrVal ? arrVal[1].endOf('month').format(SMALL_DATETIME_FORMAT) : "") }, { key: "starttime", transform: arrVal => (arrVal ? arrVal[0].format(DATE_FORMAT) : "") }, { key: "endtime", transform: arrVal => (arrVal ? arrVal[1].format(SMALL_DATETIME_FORMAT) : "") }, ],