浏览代码

日期错误显示为4位了

skyfffire 2 年之前
父节点
当前提交
759f80a7e1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      global/src/log_utils.rs

+ 1 - 1
global/src/log_utils.rs

@@ -20,7 +20,7 @@ impl FormatTime for LocalTimer {
         let now = Utc::now().with_timezone(&FixedOffset::east_opt(8 * 3600).unwrap());
         write!(
             w,
-            "{:04}-{:02} {:02}:{:02}:{:02}.{:03}",
+            "{:02}-{:02} {:02}:{:02}:{:02}.{:03}",
             now.month(),
             now.day(),
             now.hour(),