mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve av https://github.com/siyuan-note/siyuan/issues/15603
This commit is contained in:
parent
e451c1f60a
commit
4210dad5b0
1 changed files with 3 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue