From 0fd90f2fc6352813edf5c5bbd841a5ac1dcebef5 Mon Sep 17 00:00:00 2001 From: Elivo Date: Sun, 27 Apr 2025 12:09:39 +0800 Subject: [PATCH] =?UTF-8?q?Logger=EF=BC=9A=E4=BF=AE=E6=AD=A3=20ClockUtilit?= =?UTF-8?q?y.Parse=20=E7=9A=84=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Apewer/Logger.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Apewer/Logger.cs b/Apewer/Logger.cs index fec5614..0145289 100644 --- a/Apewer/Logger.cs +++ b/Apewer/Logger.cs @@ -287,8 +287,8 @@ namespace Apewer } // 从文件名解析日期 - var dt = ClockUtility.ParseLucid(fileName.Substring(0, 10)); - if (dt == null || !dt.HasValue) continue; + var dt = ClockUtility.Parse(fileName.Substring(0, 10)); + if (dt == null) continue; var days = Convert.ToInt32(Convert.ToInt64((today - dt.Value).TotalMilliseconds) / 86400000L); if (days > reserved)