Opened 17 years ago
Closed 15 years ago
#1726 closed defect (fixed)
Change first day of the week in calendar
Reported by: | Remy Blank | Owned by: | Noah Kantrowitz |
---|---|---|---|
Priority: | normal | Component: | DateFieldPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 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
Attachments (3)
Change History (8)
Changed 17 years ago by
Attachment: | first_day_of_week.patch added |
---|
comment:1 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | 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 16 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Trac Release: | 0.10 → 0.11 |
Type: | 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)
comment:3 Changed 16 years ago by
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 16 years ago by
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.
Adds an option 'first_day_of_week' for trac.ini