Skip to content

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

:art: Improve block update time filling https://github.com/siyuan-note/siyuan/issues/12182

Daniela5c02a78e87a
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go
index fcaa6d5cec..a43979cb4e 100644
--- a/kernel/model/transaction.go
+++ b/kernel/model/transaction.go
@@ -1262,12 +1262,7 @@ func createdUpdated(node *ast.Node) {
updated := n.IALAttr("updated")
if "" == updated && ast.IsNodeIDPattern(n.ID) {
created := util.TimeFromID(n.ID)
- updated = created
- if updated < created {
- updated = created
- }
-
- n.SetIALAttr("updated", updated)
+ n.SetIALAttr("updated", created)
}
return ast.WalkContinue
})