Search and Top Navigation
#6809 closed bug (worksforme)
Opened January 05, 2011 11:57AM UTC
Closed January 05, 2011 01:13PM UTC
Last modified January 23, 2013 04:48PM UTC
DatePicker Bug: wrong days/weekdays structure in whole 2011
Reported by: | goldman | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.datepicker | Version: | 1.8.7 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Check 2011 weekdays in demo: http://jqueryui.com/demos/datepicker/
All weekdays are wrong f.e new year in 01.01.2011 is saturday not sunday :)
To fix that search replace in your jquery-ui-1.8.6.custom.min.js file:
Buged line: t=(this._getFirstDayOfMonth(m,g)-h+7)%7;
Fixed line: t=(this._getFirstDayOfMonth(m,g)-h+6)%7;
greets
Attachments (0)
Change History (4)
Changed January 05, 2011 01:13PM UTC by comment:1
component: | ui.core → ui.datepicker |
---|---|
resolution: | → worksforme |
status: | new → closed |
Changed November 23, 2012 10:37AM UTC by comment:2
I had the same problem in 1.8.16. The date picker thought the dates were on a weekday that is a day later than the actual weekday, for example it put November first, 2012 on a Friday instead of a Thursday. The fix mentioned above fixed this for me. So although Scott Gonzalez mentioned it works for him, it certainly does not for me (and presumably did not for goldman).
Changed November 23, 2012 01:28PM UTC by comment:3
_comment0: | @toon81 If you would like to look into this we're going to need a reduced test case showing the issue with the most recent version of jQuery UI (1.9.1). To get you started, use can use this boilerplate: http://jsfiddle.net/ZgAqH/ Open the link and click to "Fork" (in the top menu) to get started. \ \ The dates look fine to me on the current demos - http://jqueryui.com/demos/datepicker/. \ \ Thanks. → 1353677341999361 |
---|
@toon81 If you would like us to look into this we're going to need a reduced test case showing the issue with the most recent version of jQuery UI (1.9.1). To get started you use can use this boilerplate: http://jsfiddle.net/ZgAqH/ Open the link and click to "Fork" (in the top menu) to get started.
The dates look fine to me on the current demos - http://jqueryui.com/demos/datepicker/.
Thanks.
Changed January 23, 2013 04:48PM UTC by comment:4
Replying to [comment:3 tj.vantoll]:
@toon81 If you would like us to look into this we're going to need a reduced test case showing the issue with the most recent version of jQuery UI (1.9.1). To get started you use can use this boilerplate: http://jsfiddle.net/ZgAqH/ Open the link and click to "Fork" (in the top menu) to get started. The dates look fine to me on the current demos - http://jqueryui.com/demos/datepicker/. Thanks.
The demo works well for me, so guess I'm not suffering from this bug anymore. Oddly enough it seems to be gone in 1.8.16, too. I actually had to reverse the fix. So either I wasn't in fact using jquery UI 1.8.16 when I posted the earlier comment, or there's some other explanation for it.
This is working fine for me. Tested in git, 1.8.7, 1.8.6.