Fix to Arabic week number parsings. #1398

Merged
merged 1 commit into from Jan 9, 2014

Conversation

Projects
None yet
2 participants

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

Contributor

ichernev commented Jan 9, 2014

Good catch, thank you!

@ichernev ichernev added a commit that referenced this pull request Jan 9, 2014

@ichernev ichernev Merge pull request #1398 from gregor-rayman/develop
Fix Arabic-like week number parsing

@changelog
@section bugfix
205672f

@ichernev ichernev merged commit 205672f into moment:develop Jan 9, 2014

1 check passed

default The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment