Fix bad input range on time conditions.