I'm not sure of the behaviour before today, but my understand of filtering with date.after()is that the specified date would not be included, but excluded. E.g. '[date.after(my.exhibitions.end, "2026-04-19")]'would not return documents with an exhibition ending on the 19th.
Thing is, it currently does. If you're able to view our website today (the 20th), you'll see an event that ended yesterday as part of a list that we filter with
Thank you @Pau !!
Can I just confirm whether or not this behaviour has always been "from start of day" vs "end of day"?
Just trying to figure out why we would have gone for it and make the changes required everywhere. (It's been that way for years)
date.after() hasn’t changed, this behavior has been consistent.
What’s happening is related to how the date is interpreted. When you use a date like "2026-04-19", it’s treated as the start of that day, so anything later on the 19th is still considered “after” and will be included.