From 65d4baf0a436ebbd378de5400a8f8d1d033e32e8 Mon Sep 17 00:00:00 2001 From: "stan.yang" Date: Tue, 14 Jan 2025 19:38:20 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-146679=20fix:=20=E5=B9=B4=E6=9C=88?= =?UTF-8?q?=E6=97=A5=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/widget/timeinterval/dateinterval.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/fineui/src/widget/timeinterval/dateinterval.js b/packages/fineui/src/widget/timeinterval/dateinterval.js index 964c44f3a..8c83c0fc6 100644 --- a/packages/fineui/src/widget/timeinterval/dateinterval.js +++ b/packages/fineui/src/widget/timeinterval/dateinterval.js @@ -195,8 +195,8 @@ export class DateInterval extends Single { _check(smallDate, bigDate) { // 现在有自定义样式,所以有["%X", "%d", "%Y"]这种不是[year, month, day]的情况,下面取对应的ymd就出错 // 所以先把这个string转成date,再转成默认格式string,只对自定义格式的date做处理 - const newSmallDate = this.options.format ? print(parseDateTime(smallDate, this.options.format), "%Y-%X-%d %H:%M:%S") : smallDate; - const newBigDate = this.options.format ? print(parseDateTime(bigDate, this.options.format), "%Y-%X-%d %H:%M:%S") : bigDate; + const newSmallDate = this.options.format ? print(parseDateTime(smallDate, this.options.format), "%Y-%X-%d") : smallDate; + const newBigDate = this.options.format ? print(parseDateTime(bigDate, this.options.format), "%Y-%X-%d") : bigDate; const smallObj = newSmallDate.match(/\d+/g), bigObj = newBigDate.match(/\d+/g); return (