From 12533859ec778e339e69c2b437234cb2298c0192 Mon Sep 17 00:00:00 2001 From: RainSpark <64719447+Takeoff0518@users.noreply.github.com> Date: Fri, 26 Jan 2024 05:07:01 +0800 Subject: [PATCH] =?UTF-8?q?[console]=20fix:=20=E4=BF=AE=E5=A4=8D=E8=B7=A8?= =?UTF-8?q?=E5=B9=B4=E6=97=B6=E6=97=A5=E5=BF=97=E6=96=87=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=E9=94=99=E4=B9=B1=E9=97=AE=E9=A2=98=20(#2830?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: 修复日期混淆问题 修正 DailySplitLogRecorder 中日期格式化模式中使用错误的模式字符串的问题。将大写的 "YYYY" 更正为小写的 "yyyy",以确保在跨年时生成的日志文件显示正确的年份。 --- .../mirai-console-frontend-base/src/logging/LogRecorder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-console/frontend/mirai-console-frontend-base/src/logging/LogRecorder.kt b/mirai-console/frontend/mirai-console-frontend-base/src/logging/LogRecorder.kt index 657c13e3d1..5d150101ad 100644 --- a/mirai-console/frontend/mirai-console-frontend-base/src/logging/LogRecorder.kt +++ b/mirai-console/frontend/mirai-console-frontend-base/src/logging/LogRecorder.kt @@ -107,7 +107,7 @@ public open class DailySplitLogRecorder( protected val directory: Path, protected val base: FrontendBase, protected val dateFormatter: DateTimeFormatter = DateTimeFormatter.ofPattern( - "YYYY-MM-dd'.log'" + "yyyy-MM-dd'.log'" ), ) : LogRecorder() { @JvmField