[BZ 1161806] Update the migration code to handle cases where the data spans a DST change. Without this change, the code will not be able to properly retreive indexes that if the start date is before the DST transition and end date is after the DST transition.