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: Improve database date field relative between filter https://github.com/siyuan-note/siyuan/issues/14217
Danielfc82093fbd5e
diff --git a/kernel/av/filter.go b/kernel/av/filter.goindex bac2de5165..22d477cdbb 100644--- a/kernel/av/filter.go+++ b/kernel/av/filter.go@@ -644,10 +644,10 @@ func filterRelativeTime(valueMills int64, valueIsNotEmpty bool, operator FilterO((valueTime.After(otherValueStart2) || valueTime.Equal(otherValueStart2)) && (valueTime.Before(otherValueEnd2) || valueTime.Equal(otherValueEnd2)))} else if RelativeDateDirectionAfter == direction2 {var leftStart, rightEnd time.Time- if otherValueEnd.Before(otherValueEnd2) {- leftStart = otherValueEnd+ if otherValueStart.Before(otherValueStart2) {+ leftStart = otherValueStart} else {- leftStart = otherValueEnd2+ leftStart = otherValueStart2}if otherValueEnd.After(otherValueEnd2) {rightEnd = otherValueEnd