Fix malformed dates.