Opened 10 years ago

Closed 8 years ago

# Change first day of the week in calendar

Reported by: Owned by: Remy Blank Noah Kantrowitz normal DateFieldPlugin normal 0.11

### Description

I'm in Switzerland and, well, we like our weeks to start on Monday :-)

Here's a patch that adds an option to trac.ini to select the day to be displayed as the first day of the week:

[datefield]
; 0=Sunday .. 6=Saturday
first_day_of_week = 1


### Changed 10 years ago by Remy Blank

Adds an option 'first_day_of_week' for trac.ini

### comment:1 Changed 9 years ago by Robert Corsaro

Resolution: → fixed new → closed

Added first_day option to 0.11 branch. There seems to be a bug in jquery-ui datepicker that causes the tue column to be highlighted as a weekend when the firstDay parameter is used. Hopefully it will get fixed in jquery-ui.

### comment:2 Changed 9 years ago by hju@…

Resolution: fixed closed → reopened 0.10 → 0.11 enhancement → defect

There seems to be a bug in jquery-ui datepicker that causes the tue column to be highlighted as a weekend when the firstDay parameter is used. Hopefully it will get fixed in jquery-ui.

It is not only a question of higlighting the tue column. The Column-Headers are even disordered. (see attached screenshots)

First_day = 1

First_day = 2

### comment:3 Changed 9 years ago by petrus69@…

Same over here, weekday/-end highlighting as well as the disordered day of week short names appear in any first_day=X setting different from first_day=0.

### comment:4 Changed 9 years ago by peterson_eric_d@…

I also like my calendars to start on Monday. But when I set first_day = 1, the calendar is slightly messed up.

My weekdays are called

 Mo Th Su We Sa Tu Fri

with Su and Tu highlighted as weekends. The numbers in the calendar are correct, just the week day names and weekend highlights are messed up.

### comment:5 Changed 8 years ago by anonymous

Resolution: → fixed reopened → closed

### Modify Ticket

Change Properties