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 to Arabic week number parsings. #1398

Merged
merged 1 commit into from
Jan 9, 2014
Merged

Fix to Arabic week number parsings. #1398

merged 1 commit into from
Jan 9, 2014

Conversation

gregor-rayman
Copy link

In Arabic week numbering (week starts on Saturday, 1st week contains January 1st) the local week numbering formatting is correct (2013-12-28 formatted as gggg ww d becomes 2014 1 6), the parsing however is shifting the weeks by one. Parsing moment('2014 1 6', 'gggg w d') returns the January 4th 2014.

Fixes the issue #1397

@ichernev
Copy link
Contributor

ichernev commented Jan 9, 2014

Good catch, thank you!

ichernev added a commit that referenced this pull request Jan 9, 2014
Fix Arabic-like week number parsing

@changelog
@section bugfix
@ichernev ichernev merged commit 205672f into moment:develop Jan 9, 2014
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

2 participants