Fixes #2530

Iterating one day too many