Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix JavaScript parse reference date #138

Merged
merged 2 commits into from
Oct 12, 2017

Conversation

enzocano
Copy link
Contributor

Issue: JavaScript DateTime tests fails on node js v7 or prior because Date.parse behavior differs from the implemented on node js v8. Related node issue (Date parse behavior change in node-v8)

Fix: Use a custom ISODateString-to-dateObject converter to get the same behavior in all node versions.

Additionally, the JavaScript build script has been modified to force build submodules.

@@ -210,9 +210,14 @@ function getModel(config) {
return findModel(options, cultureCode);
}

function parseISOLocal(s) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a comment in the code here to explain why this was needed? It will be helpful in the future.

@tellarin tellarin merged commit b7d1d0d into microsoft:master Oct 12, 2017
@pcostantini pcostantini deleted the force-javascript-build branch October 12, 2017 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants