Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#2263 closed bug (fixed)

Error in calculate week - UI Datepicker

Reported by: JesperSJensen Owned by: kbwood
Priority: major Milestone: 1.5
Component: ui.core Version: 1.2.2
Keywords: datepicker Cc:
Blocked by: Blocking:


Error in calculating week number.
2 weeks number 13 in 2008
zero week number 43 in 2008
and so forth...
The following statement in function iso8601Week:
return Math.floor(((checkDate - firstMon) / 86400000) / 7) + 1;
should be
return Math.floor((Math.round((checkDate - firstMon) / 86400000)) / 7) + 1;

regards, Jesper

Change History (7)

comment:1 Changed 15 years ago by paul

Owner: changed from paul to iMarc

comment:2 Changed 15 years ago by kbwood

Owner: changed from iMarc to kbwood
Status: newassigned

I can't replicate this problem. What browser and operating system are you using?

comment:3 Changed 15 years ago by JesperSJensen

Using (Misc.1) March 2008. Operating system: Windows XP Professional Version 2002 Service Pack 2 Browser with error: IE 7.0.5730.11 Firefox Opera 9.23 Not tested: Safari and others...

comment:4 Changed 15 years ago by JesperSJensen

See Ticket #2124 - same story
My hardware is:
Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz 2.13GHz, 2,99GB RAM

comment:5 Changed 15 years ago by paul

Resolution: fixed
Status: assignedclosed

comment:6 Changed 15 years ago by (none)

Milestone: 1.2.3

Milestone 1.2.3 deleted

comment:7 Changed 14 years ago by paul

Milestone: 1.5
Note: See TracTickets for help on using tickets.