corrects dates