Skip to content

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

:art: Add `Default fill specific time` switch to database date field https://github.com/siyuan-note/siyuan/issues/12089

Daniel5f69916a39eb
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 41950efda8..d9bae36809 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -4793,6 +4793,7 @@ func updateAttributeViewValue(tx *Transaction, attrView *av.AttributeView, keyID
val.Date.Content = 0
val.Date.FormattedContent = ""
}
+ val.Date.IsNotTime = !key.Date.FillSpecificTime
} else if av.KeyTypeSelect == val.Type || av.KeyTypeMSelect == val.Type {
if nil != key && 0 < len(val.MSelect) {
var tmp []*av.ValueSelect