Skip to content

Commit

Permalink
Fixed :since: modifier which has been broken for a while
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Aug 25, 2022
1 parent 51ec495 commit febd767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/query/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func (sm sinceModifier) Evaluate(a engine.Attribute, o *engine.Object) bool {
return false
}

if sm.c.Compare(sm.ts.From(t).Unix(), time.Now().Unix()) {
if sm.c.Compare(t.Unix(), sm.ts.From(time.Now()).Unix()) {
return true
}
}
Expand Down

0 comments on commit febd767

Please sign in to comment.