Browse Source

:bug: The document tree creation time and update time are reversed https://github.com/siyuan-note/siyuan/issues/12874

Daniel 8 months ago
parent
commit
0ddf2c3fb5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      kernel/model/push_reload.go

+ 2 - 2
kernel/model/push_reload.go

@@ -92,8 +92,8 @@ func refreshDocInfo0(tree *parse.Tree, size uint64) {
 		"hSize":        humanize.BytesCustomCeil(size, 2),
 		"mtime":        mTime.Unix(),
 		"ctime":        cTime.Unix(),
-		"hMtime":       cTime.Format("2006-01-02 15:04:05") + ", " + util.HumanizeTime(mTime, Conf.Lang),
-		"hCtime":       mTime.Format("2006-01-02 15:04:05") + ", " + util.HumanizeTime(cTime, Conf.Lang),
+		"hMtime":       mTime.Format("2006-01-02 15:04:05") + ", " + util.HumanizeTime(mTime, Conf.Lang),
+		"hCtime":       cTime.Format("2006-01-02 15:04:05") + ", " + util.HumanizeTime(cTime, Conf.Lang),
 		"subFileCount": subFileCount,
 	}