make a correction of the date array