Parsing Arabic weeks shifted by 1
gregor-rayman opened this issue · comments
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
.
Here a corresponding jsfiddle http://jsfiddle.net/EGErZ/
Merged