Fixes #23714 -- `date` filter during DST change

The except block catching all exceptions is ugly, but I can't rely on `pytz` library, which is optional, and therefore I can't catch `pytz.exceptions.AmbiguousTimeError` exception.
This is really a separate fix, but I guess we can do them in the same PR.