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.
Yep, definitely. Meanwhile, I'll add tests too.