From 4210dad5b021aef11872875ea006eb577da3176a Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Thu, 21 Aug 2025 21:56:11 +0800 Subject: [PATCH] :art: Improve av https://github.com/siyuan-note/siyuan/issues/15603 --- kernel/av/filter.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/av/filter.go b/kernel/av/filter.go index 1a689ceb8..40e68092f 100644 --- a/kernel/av/filter.go +++ b/kernel/av/filter.go @@ -680,6 +680,9 @@ func filterTime(valueMills int64, valueIsNotEmpty bool, otherValueMills, otherVa case FilterOperatorIsLessOrEqual: return valueTime.Before(otherValueEnd) || valueTime.Equal(otherValueEnd) case FilterOperatorIsBetween: + if 0 == otherValueMills || 0 == otherValueMills2 { + return true + } otherValueTime2 := time.UnixMilli(otherValueMills2) otherValueEnd2 := time.Date(otherValueTime2.Year(), otherValueTime2.Month(), otherValueTime2.Day(), 23, 59, 59, 999999999, otherValueTime2.Location()) return (valueTime.After(otherValueStart) || valueTime.Equal(otherValueStart)) && (valueTime.Before(otherValueEnd2) || valueTime.Equal(otherValueEnd2))