An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Improve date filter
Danielbb989bcb3509
diff --git a/kernel/av/filter.go b/kernel/av/filter.goindex d60735a303..7ec186445d 100644--- a/kernel/av/filter.go+++ b/kernel/av/filter.go@@ -632,13 +632,13 @@ func filterRelativeTime(valueMills int64, valueIsNotEmpty bool, operator FilterOcase FilterOperatorIsNotEqual:return valueTime.Before(otherValueStart) || valueTime.After(otherValueEnd)case FilterOperatorIsGreater:- return valueTime.After(otherValueEnd) || valueTime.Equal(otherValueEnd)+ return valueTime.After(otherValueStart)case FilterOperatorIsGreaterOrEqual:return valueTime.After(otherValueStart) || valueTime.Equal(otherValueStart)case FilterOperatorIsLess:return valueTime.Before(otherValueStart)case FilterOperatorIsLessOrEqual:- return valueTime.Before(otherValueEnd) || valueTime.Equal(otherValueEnd)+ return valueTime.Before(otherValueStart) || valueTime.Equal(otherValueStart)case FilterOperatorIsBetween:if RelativeDateDirectionBefore == direction {if RelativeDateDirectionBefore == direction2 {