Skip to content

Commit fc82093

Browse files
committed
🎨 Improve database date field relative between filter #14217
1 parent 03ed04a commit fc82093

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/av/filter.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -644,10 +644,10 @@ func filterRelativeTime(valueMills int64, valueIsNotEmpty bool, operator FilterO
644644
((valueTime.After(otherValueStart2) || valueTime.Equal(otherValueStart2)) && (valueTime.Before(otherValueEnd2) || valueTime.Equal(otherValueEnd2)))
645645
} else if RelativeDateDirectionAfter == direction2 {
646646
var leftStart, rightEnd time.Time
647-
if otherValueEnd.Before(otherValueEnd2) {
648-
leftStart = otherValueEnd
647+
if otherValueStart.Before(otherValueStart2) {
648+
leftStart = otherValueStart
649649
} else {
650-
leftStart = otherValueEnd2
650+
leftStart = otherValueStart2
651651
}
652652
if otherValueEnd.After(otherValueEnd2) {
653653
rightEnd = otherValueEnd

0 commit comments

Comments
 (0)