I want to change the weekday order from Sunday to Saturday to Mon to Sunday.
Example,
Su Mo Tu We Th Fr Sa
to
Mo Tu We Th Fr Sa Su
So I changed the code in the _buildWeek method in the directive from
days = [0, 1, 2, 3, 4, 5, 6].map(function(d) {
to
days = [1, 2, 3, 4, 5, 6, 0].map(function(d) {
the days render correctly at the top but the actual day for each week on the Sunday shifts down, so displays as
Mo Tu We Th Fr Sa Su
30 31 1 2 3 4 29
6 7 8 9 10 11 5
...
You can see the Sunday has got the date of 29 and the 5th which is down a week.
Any ideas how I can fix this?
Many Thanks