An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Keep original creation time when importing .sy.zip https://github.com/siyuan-note/siyuan/issues/9923
Daniel28c7f6df7f04
diff --git a/kernel/model/import.go b/kernel/model/import.goindex 1ed0ce5614..04116b3060 100644--- a/kernel/model/import.go+++ b/kernel/model/import.go@@ -147,7 +147,9 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {return ast.WalkContinue}- newNodeID := ast.NewNodeID()+ // 新 ID 保留时间部分,仅修改随机值,避免时间变化导致更新时间早于创建时间+ // Keep original creation time when importing .sy.zip https://github.com/siyuan-note/siyuan/issues/9923+ newNodeID := util.TimeFromID(n.ID) + "-" + gulu.Rand.String(7)blockIDs[n.ID] = newNodeIDoldNodeID := n.IDn.ID = newNodeID