1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-24 20:43:33 +08:00

fix: 修复日期混淆问题

修正 DailySplitLogRecorder 中日期格式化模式中使用错误的模式字符串的问题。将大写的 "YYYY" 更正为小写的 "yyyy",以确保在跨年时生成的日志文件显示正确的年份。
This commit is contained in:
takeoff37808 2024-01-07 20:46:55 +08:00
parent 78446ab367
commit c08843d6b5

View File

@ -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