Fix parsing of date interval.