Defect #17625

Wrong week number in JQuery datepicker if start of week day is Sunday

Added by Mario Scondo about 3 years ago. Updated almost 2 years ago.

Status:ConfirmedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:UI
Target version:-
Resolution: Affected version:2.5.2

Description

Calendar shows incorrect week number.

In the screenshot the date 2014-08-07 is part of week number 31. Correct would be 32.

Screenshot:

Details regarding my installation of Redmine:

Environment:
  Redmine version                2.5.2.stable.13335
  Ruby version                   2.1.0-p0 (2013-12-25) [x86_64-linux]
  Rails version                  3.2.19
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.6.19
  Mercurial                      1.7.5
  Cvs                            1.12.12
  Bazaar                         2.0.5
  Git                            1.7.3.4
  Filesystem                     
Redmine plugins:
  due_date_reminder              0.4
  redmine_wiki_extensions        0.6.0
  redmine_work_time              0.2.6
  sidebar                        0.1.0
  wiking                         1.0.0b

screenshot.5.jpeg (70 KB) Mario Scondo, 2014-08-07 12:28

jquery.html Magnifier (948 Bytes) Toshi MARUYAMA, 2014-08-07 13:36


Related issues

Related to Redmine - Defect #4857: Week number calculation in date picker is wrong if a week... Closed 2010-01-17
Duplicated by Redmine - Defect #20707: Wrong week number Closed

History

#1 Updated by Mario Scondo about 3 years ago

  • Copied from Defect #3271: Wrong week number in Calendar added

#2 Updated by Toshi MARUYAMA about 3 years ago

  • Start date deleted (2009-04-30)

#3 Updated by Toshi MARUYAMA about 3 years ago

  • Subject changed from Wrong week number in Calendar to Wrong week number in JQuery datepicker

#4 Updated by Toshi MARUYAMA about 3 years ago

  • Subject changed from Wrong week number in JQuery datepicker to Wrong week number in JQuery datepicker if start of week day is Sunday
  • Status changed from New to Confirmed

#5 Updated by Toshi MARUYAMA about 3 years ago

  • Category set to UI

#6 Updated by Toshi MARUYAMA about 3 years ago

Confirmed.
  • OK: start of week day is Monday
  • NG: start of week day is Sunday

It seems JQuery datepicker bug.

#7 Updated by Toshi MARUYAMA about 3 years ago

datepicker weeknummers and firstDay
http://bugs.jqueryui.com/ticket/8766

#8 Updated by Toshi MARUYAMA about 3 years ago

  • Related to Defect #4857: Week number calculation in date picker is wrong if a week starts with Sunday added

#9 Updated by Toshi MARUYAMA about 3 years ago

  • Copied from deleted (Defect #3271: Wrong week number in Calendar)

#10 Updated by Toshi MARUYAMA about 2 years ago

#11 Updated by Diogo Soares almost 2 years ago

Edit application.css

@import url(bugfix.css);

Add bugfix.css

datepicker-year {
    width: 47% !important;
}

datepicker-month {
    width: 47% !important;
}

th.ui-datepicker-week-col {
    display: none;
}

td.ui-datepicker-week-col {
    display: none;
}

select.ui-datepicker-month {
    float: left;
}

Also available in: Atom PDF