Skip to main content

Search and Top Navigation

#8766 closed bug (wontfix)

Opened November 01, 2012 05:48PM UTC

Closed November 01, 2012 07:35PM UTC

Last modified September 13, 2013 12:15PM UTC

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:
Description

Hello,

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

http://jsfiddle.net/JeN77/

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

Attachments (0)
Change History (3)

Changed November 01, 2012 07:35PM UTC by scottgonzalez comment:1

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.

Changed November 02, 2012 12:01AM UTC by inwedes comment:2

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.

Changed September 13, 2013 12:15PM UTC by Nilos comment:3

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.