esmero / format_strawberryfield

Set of Display formatters, extractors and utils to make Strawberry field data glow
GNU Lesser General Public License v3.0
6 stars 9 forks source link

Add Time Zone awareness to Date Range Facet Filter #443

Open DiegoPino opened 2 months ago

DiegoPino commented 2 months ago

What?

Because of time zone (Solr indexed days) v/s User facing date processing ranges might end not being inclusive and either removing results or not matching at all.

The solution is to add some "slack" to any range passed to make the range inclusive. Slack means basically adding 23:59:59 to the end and to the beginning to cover more ground (one option, other is to read the actual Time Zone from the server and use that)