use code from angular-ui pull request to update date parser