mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve database date field relative between filter https://github.com/siyuan-note/siyuan/issues/14217
This commit is contained in:
parent
03ed04a639
commit
fc82093fbd
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue