From 3c91972edbc4ebef9f621c8b7ae47d4f880d8935 Mon Sep 17 00:00:00 2001 From: "stan.yang" Date: Mon, 13 Jan 2025 18:47:29 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-146679=20fix:=20=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E6=A0=BC=E5=BC=8F=E6=97=B6check=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/widget/timeinterval/dateinterval.js | 3 ++- packages/fineui/src/widget/timeinterval/timeinterval.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/fineui/src/widget/timeinterval/dateinterval.js b/packages/fineui/src/widget/timeinterval/dateinterval.js index 5f1aaef77..43386d331 100644 --- a/packages/fineui/src/widget/timeinterval/dateinterval.js +++ b/packages/fineui/src/widget/timeinterval/dateinterval.js @@ -181,7 +181,8 @@ export class DateInterval extends Single { print(parseDateTime(date, "%Y-%x-%d"), "%Y-%x-%d") === date || print(parseDateTime(date, "%Y-%X-%d"), "%Y-%X-%d") === date || print(parseDateTime(date, "%Y-%x-%e"), "%Y-%x-%e") === date || - print(parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date + print(parseDateTime(date, "%Y-%X-%e"), "%Y-%X-%e") === date || + print(parseDateTime(date, this.options.format), this.options.format) === date ); } diff --git a/packages/fineui/src/widget/timeinterval/timeinterval.js b/packages/fineui/src/widget/timeinterval/timeinterval.js index 11808d69c..e5c9afe3e 100644 --- a/packages/fineui/src/widget/timeinterval/timeinterval.js +++ b/packages/fineui/src/widget/timeinterval/timeinterval.js @@ -197,7 +197,8 @@ export class TimeInterval extends Single { print(parseDateTime(date, "%Y-%x-%d %H:%M:%S"), "%Y-%x-%d %H:%M:%S") === date || print(parseDateTime(date, "%Y-%X-%d %H:%M:%S"), "%Y-%X-%d %H:%M:%S") === date || print(parseDateTime(date, "%Y-%x-%e %H:%M:%S"), "%Y-%x-%e %H:%M:%S") === date || - print(parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date + print(parseDateTime(date, "%Y-%X-%e %H:%M:%S"), "%Y-%X-%e %H:%M:%S") === date || + print(parseDateTime(date, this.options.format), this.options.format) === date ); }