mirror of
https://github.com/mamoe/mirai.git
synced 2024-12-26 00:20:10 +08:00
[console] fix: 修复跨年时日志文件名日期错乱问题 (#2830)
fix: 修复日期混淆问题 修正 DailySplitLogRecorder 中日期格式化模式中使用错误的模式字符串的问题。将大写的 "YYYY" 更正为小写的 "yyyy",以确保在跨年时生成的日志文件显示正确的年份。
This commit is contained in:
parent
78446ab367
commit
12533859ec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user