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

Parsing Arabic weeks shifted by 1 #1397

Closed
gregor-rayman opened this Issue Jan 6, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@gregor-rayman

gregor-rayman commented Jan 6, 2014

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.

I expect the problem is in the function dayOfYearFromWeeks.

@gregor-rayman

This comment has been minimized.

gregor-rayman commented Jan 6, 2014

Here a corresponding jsfiddle http://jsfiddle.net/EGErZ/

@ichernev

This comment has been minimized.

Contributor

ichernev commented Jan 9, 2014

Merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment