Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#8766 closed bug (wontfix)

datepicker weeknummers and firstDay

Reported by: inwedes Owned by:
Priority: minor Milestone: 1.10.0
Component: ui.datepicker Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:



here a suggestion or bug report (with working idea to fix that)

setting firstDay to other than monday, of course we get a problem calculating the weeknumbers, the default function gives weeknummer of first day in row, that is not realy great ;-) in my example the prblem becomes visible on 1. jan 2013, looks absolutly wrong

any other ideas how to handle this? its not a coding bug, is a question how to decide about the default functionality and maybe improve the widget a bit more

Change History (3)

comment:1 Changed 10 years ago by Scott González

Resolution: wontfix
Status: newclosed

The default is to use ISO 8601 and you have the ability to change the logic however you want, as you have already discovered. We won't be changing the default away from ISO 8601.

comment:2 Changed 10 years ago by inwedes

Ok, i will look into ISO 8601 :-) what day the weeknumbers should start. i think its ALWAYS monday. by changing firstDay this should be not ignored. i'm using ISO 8601 too, but still lookup for monday in the calendar row.

only suggestions. having the callback is a great solution for me.

comment:3 Changed 9 years ago by Nilos

Sorry guys, I do think you have to fix this. You are using ISO-8601 to calculate the weeknumber which demands you to calculate the weeknumber from the monday of your week. Anyhow you pass it the first day of your week, not the monday of your week.

Note: See TracTickets for help on using tickets.