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 )
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
Milestone: | 1.9.0 → 1.11.0 |
---|
comment:2 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 11 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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