Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Daniel0ddf2c3fb54a
diff --git a/kernel/model/push_reload.go b/kernel/model/push_reload.go
index 93bd457b4f..083b58df51 100644
--- a/kernel/model/push_reload.go
+++ b/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,
}