Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Day of week order #45

@daemonk

Description

@daemonk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions