Fix bug where all dates generation was matching dates outside start/end boundaries