Fix bug with parse date from string