mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Improve block update time filling https://github.com/siyuan-note/siyuan/issues/12182
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user