Exclude hour from midnight boundary check