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

Bug Fix #2704 - isoWeekday(String) inconsistent with isoWeekday(Number) #3177

Closed
wants to merge 1 commit into from

Conversation

nvdh
Copy link
Contributor

@nvdh nvdh commented May 11, 2016

Bug fix for issue #2704 as requested by @mj1856

@nvdh nvdh changed the title Fixes #2704 - isoWeekday(String) inconsistent with isoWeekday(Number) Bug Fix #2704 - isoWeekday(String) inconsistent with isoWeekday(Number) May 11, 2016
@@ -82,6 +82,19 @@ function parseWeekday(input, locale) {
return null;
}

function parseIsoWeekday(input, locale) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think falling back to parseWeekday is a bit excessive. If its string go through localeParse. If we now have number do the modulus. Return null if any of those fail.

@ichernev
Copy link
Contributor

ichernev commented Jun 7, 2016

@nvdh thank you for workung on this. Looks good just address the small comment and it will be merged.

@ichernev
Copy link
Contributor

Merged in 07358ff

@ichernev ichernev closed this Jun 14, 2016
ichernev added a commit that referenced this pull request Jun 14, 2016
Bug Fix #2704 - isoWeekday(String) inconsistent with isoWeekday(Number)
@mattjohnsonpint mattjohnsonpint added this to the 2.14.0 milestone Jul 5, 2016
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

3 participants