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 #2645 - invalid dates pre-1970 #2646

Closed
wants to merge 2 commits into from

Conversation

elreimundo
Copy link

Fixes #2645

@@ -4,7 +4,7 @@ export function createDate (y, m, d, h, M, s, ms) {
var date = new Date(y, m, d, h, M, s, ms);

//the date constructor doesn't accept years < 1970
if (y < 1970) {
if (y < 1970 && isFinite(date.getYear())) {
Copy link
Contributor

Choose a reason for hiding this comment

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

getFullYear

@mattjohnsonpint
Copy link
Contributor

Hmmm... somehow my change from #2465 appears to have been lost here. Can you redo that here please? The test should be y < 100 && y >= 0 - not y < 1970. And the comment should be updated as well. Thanks.

@elreimundo
Copy link
Author

@mj1856 your change from #2465 is not currently in the develop branch. When the time comes to resolve a potential merge conflict, I hope the individual responsible for resolving said conflict will reference this communication thread and merge appropriately. It is not, however, my responsibility to resolve before the fact a merge conflict that may or may not occur.

@ichernev
Copy link
Contributor

ichernev commented Nov 9, 2015

Merged in cedef93

@ichernev ichernev closed this Nov 9, 2015
ichernev added a commit that referenced this pull request Nov 9, 2015
ichernev added a commit that referenced this pull request Dec 23, 2015
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.

None yet

4 participants