From 416b8c4019cbf55df2722c1933a56ad86e6cb5fa Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Thu, 24 Oct 2019 10:38:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20date=20=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=80=BC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Form/Date.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderers/Form/Date.tsx b/src/renderers/Form/Date.tsx index e2f584f4d..26ea164bf 100644 --- a/src/renderers/Form/Date.tsx +++ b/src/renderers/Form/Date.tsx @@ -40,12 +40,12 @@ export default class DateControl extends React.PureComponent { const {minDate, maxDate, value, defaultValue, setPrinstineValue, data, format} = this.props; if (defaultValue && value === defaultValue) { - setPrinstineValue(filterDate(defaultValue, data).format(format)); + setPrinstineValue(filterDate(defaultValue, data, format).format(format)); } this.setState({ - minDate: minDate ? filterDate(minDate, data) : undefined, - maxDate: maxDate ? filterDate(maxDate, data) : undefined + minDate: minDate ? filterDate(minDate, data, format) : undefined, + maxDate: maxDate ? filterDate(maxDate, data, format) : undefined }); }