update date to the correct one