Ignore empty endtime when figuring out date ranges.