🎨 Improve block update time filling https://github.com/siyuan-note/siyuan/issues/12182
This commit is contained in:
parent
a070db1933
commit
a5c02a78e8
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue