Problem/Motivation
Creating a grouped filter based on a datetime field works well for the most part, but when you reset the exposed filters you get a Datetime error:
Exception: DateTime object not set. in Drupal\Component\Datetime\DateTimePlus->__call() (line 360 of /var/www/html/web/core/lib/Drupal/Component/Datetime/DateTimePlus.php)
Steps to reproduce
(Tested on 8.9.x)
- Create a date field called field_test on the article content type with date and time in settings
- Import the attached view using the single configuration import
- Go to /date-test
- Filter by 2015 and then press the reset button
- The reset won't work and it will throw the error above
Proposed resolution
- Confirm issue
- Create patch with tests
- Review patch
Remaining tasks
N/A
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
N/A