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

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


None yet
2 participants

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.


This comment has been minimized.

gregor-rayman commented Jan 6, 2014

Here a corresponding jsfiddle


This comment has been minimized.


ichernev commented Jan 9, 2014


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