Problem/Motivation
In Drupal 7, when you had an exposed Date filter on a View, and the user selected a start & end time that were both the same day, the View would return all results from that day. That is, the end date was interpreted as 23:59:59 and the start date as 00:00:00 on that day. However, when you do the same thing in Drupal 8, both the min and max filter values are interpreted as 00:00:00, such that only results for precisely midnight are returned.
Steps to reproduce
Create some data with date values, such as nodes with created timestamps. Create a View with an exposed filter on those values, with the operator set to "is between". Set both the min and max filter values to the day of one of the results. Note that the result no longer appears, because the day it occurred is not within the range of the filter.
Proposed resolution
Add a checkbox to the exposed filter configuration allowing the max date to be specified as "inclusive." When that box is checked, change the max value to 23:59:59 on the given date before running the query.
Remaining tasks
Add the checkbox. Rewrite the filter value.
User interface changes
Add the checkbox.
API changes
none.
Data model changes
none.
Release notes snippet
Allow date filters to be inclusive of the specified date.