Opened 12 years ago

Closed 11 years ago

#7218 closed bug (notabug)

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 (last modified by mikesherov)

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));

Change History (3)

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


comment:2 Changed 11 years ago by mikesherov

Description: modified (diff)

comment:3 Changed 11 years ago by mikesherov

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.

Note: See TracTickets for help on using tickets.