Fix a thinko in the 'This time' and 'This day and time' filters.

This is a rework of commit 762e630e from master for the fixes/0.27
branch.  It accomplishes the same fix if needed, but does so without
updating the schema.

Fixes #12175