Skip to main content

Search and Top Navigation

#7218 closed bug (notabug)

Opened April 04, 2011 07:23PM UTC

Closed October 18, 2012 12:18PM UTC

Bug: DatePicker number Week to BRAZIL

Reported by: leslie.cs Owned by:
Priority: minor Milestone: 1.11.0
Component: ui.datepicker Version: 1.8.11
Keywords: Cc:
Blocked by: Blocking:
Description

The number of week to calendar Brazil to be problem, because at year 2011 the first week begin at date 2011-01-02.

I resolved with line:

iso8601Week: function(date) {
...
checkDate.setDate(checkDate.getDate() + 6 - (checkDate.getDay() || 7));
...
}
Attachments (0)
Change History (3)

Changed October 11, 2012 02:43PM UTC by scottgonzalez comment:1

milestone: 1.9.01.11.0

Changed October 18, 2012 12:14PM UTC by mikesherov comment:2

description: The number of week to calendar Brazil to be problem, because at year 2011 the first week begin at date 2011-01-02. \ I resolved with line: \ iso8601Week: function(date) { \ ... \ checkDate.setDate(checkDate.getDate() + 6 - (checkDate.getDay() || 7)); \ ... \ }The number of week to calendar Brazil to be problem, because at year 2011 the first week begin at date 2011-01-02. \ I resolved with line: \ {{{ \ iso8601Week: function(date) { \ ... \ checkDate.setDate(checkDate.getDate() + 6 - (checkDate.getDay() || 7)); \ ... \ } \ }}}

Changed October 18, 2012 12:18PM UTC by mikesherov comment:3

resolution: → notabug
status: newclosed

In 2011, the first week doesn't start until a majority of that week is in the year. This works as expected. http://en.wikipedia.org/wiki/ISO_week_date