Skip to content

Commit

Permalink
[console] fix: 修复跨年时日志文件名日期错乱问题 (#2830)
Browse files Browse the repository at this point in the history
fix: 修复日期混淆问题

修正 DailySplitLogRecorder 中日期格式化模式中使用错误的模式字符串的问题。将大写的 "YYYY" 更正为小写的 "yyyy",以确保在跨年时生成的日志文件显示正确的年份。
  • Loading branch information
Takeoff0518 authored Jan 25, 2024
1 parent 78446ab commit 1253385
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1253385

Please sign in to comment.