BUG: Bug in DatetimeIndex iteration, related to (GH8890), fixed in (GH9100)

closes #9100