Fix date ranges.