Search and Top Navigation
#2263 closed bug (fixed)
Opened January 31, 2008 02:46PM UTC
Closed March 15, 2008 09:29PM UTC
Last modified February 26, 2009 11:25AM UTC
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: |
Description
Error in calculating week number.
2 weeks number 13 in 2008
zero week number 43 in 2008
and so forth...
Solution:
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
Attachments (0)
Change History (7)
Changed February 08, 2008 04:13PM UTC by comment:1
owner: | paul → iMarc |
---|
Changed February 25, 2008 04:09AM UTC by comment:2
owner: | iMarc → kbwood |
---|---|
status: | new → assigned |
I can't replicate this problem. What browser and operating system are you using?
Changed March 05, 2008 08:56AM UTC by comment:3
Using http://marcgrabanski.com/code/ui-datepicker/ (Misc.1) March 2008.
Operating system: Windows XP Professional Version 2002 Service Pack 2
Browser with error:
IE 7.0.5730.11
Firefox 2.0.0.12
Opera 9.23
Not tested:
Safari and others...
Changed March 05, 2008 09:11AM UTC by comment:4
UPS
See Ticket #2124 - same story
My hardware is:
Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz 2.13GHz, 2,99GB RAM
Changed March 15, 2008 09:29PM UTC by comment:5
resolution: | → fixed |
---|---|
status: | assigned → closed |
Changed May 24, 2008 03:39AM UTC by comment:6
milestone: | 1.2.3 |
---|
Milestone 1.2.3 deleted
Changed February 26, 2009 11:25AM UTC by comment:7
milestone: | → 1.5 |
---|