From 2d7624c10a457b7e84800b6a52684e9afbe84440 Mon Sep 17 00:00:00 2001 From: Argo-AscioTech Date: Sun, 25 Feb 2024 19:32:44 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=9B=B4=E6=96=B0=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DateTimeRange/DateTimeRange.razor.cs | 14 -------------- test/UnitTest/Components/DateTimePickerTest.cs | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor.cs b/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor.cs index 3d8e4dbf546..28f9063a937 100644 --- a/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor.cs +++ b/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor.cs @@ -336,20 +336,6 @@ private async Task OnClickSidebarItem(DateTimeRangeSidebarItem item) } } - private string GetValueString(DateTime value) - { - string? ret; - //if (ViewMode == DatePickerViewMode.DateTime) - //{ - // ret = value.ToString(DateTimeFormat); - //} - //else - //{ - ret = value.ToString(DateFormat); - //} - return ret; - } - /// /// 点击 清除按钮调用此方法 /// diff --git a/test/UnitTest/Components/DateTimePickerTest.cs b/test/UnitTest/Components/DateTimePickerTest.cs index b7dff5facc0..03a2c2c1a10 100644 --- a/test/UnitTest/Components/DateTimePickerTest.cs +++ b/test/UnitTest/Components/DateTimePickerTest.cs @@ -954,7 +954,7 @@ await cut.InvokeAsync(() => cut.SetParametersAndRender(pb => { pb.Add(a => a.ViewMode, DatePickerViewMode.Date); - pb.Add(a => a.DateFormat, "MM/dd/yyyy HH:mm:ss"); + pb.Add(a => a.DateTimeFormat, "MM/dd/yyyy HH:mm:ss"); }); await cut.InvokeAsync(() => {