Project

General

Profile

Actions

Defect #17625

closed

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

Added by Mario Scondo over 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
UI
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix
Affected version:

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


Files

screenshot.5.jpeg (70 KB) screenshot.5.jpeg Mario Scondo, 2014-08-07 12:28
jquery.html (948 Bytes) jquery.html 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 starts with SundayClosedEric Davis2010-01-17

Actions
Has duplicate Redmine - Defect #20707: Wrong week numberClosed

Actions
Actions #1

Updated by Mario Scondo over 10 years ago

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

Updated by Toshi MARUYAMA over 10 years ago

  • Start date deleted (2009-04-30)
Actions #3

Updated by Toshi MARUYAMA over 10 years ago

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

Updated by Toshi MARUYAMA over 10 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
Actions #5

Updated by Toshi MARUYAMA over 10 years ago

  • Category set to UI
Actions #6

Updated by Toshi MARUYAMA over 10 years ago

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

It seems JQuery datepicker bug.

Actions #7

Updated by Toshi MARUYAMA over 10 years ago

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

Actions #8

Updated by Toshi MARUYAMA over 10 years ago

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

Updated by Toshi MARUYAMA over 10 years ago

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

Updated by Toshi MARUYAMA over 9 years ago

Actions #11

Updated by Diogo Soares almost 9 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;
}

Actions #12

Updated by Marius BĂLTEANU over 5 years ago

  • Status changed from Confirmed to Closed
  • Resolution set to Wont fix

https://bugs.jqueryui.com/ticket/8766 was closed with "Resolution: → wontfix" .

Actions

Also available in: Atom PDF