Search and Top Navigation
#3105 closed bug (fixed)
Opened July 17, 2008 01:34AM UTC
Closed July 23, 2008 05:29PM UTC
Date picker first week in november day repeat
Reported by: | bto108@psu.edu | Owned by: | kbwood |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | ui.datepicker | Version: | 1.5.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I've got the following UI datepicker options and it is generating the first Sunday in November twice (1,2,3,4,4,5 for Nov 07 for example) which throws off every day in November as well as what are registered as weekends. This is actually in 1.5.2 but it won't let me select that version
$(document).ready(function(){ $("#instruction_designer_calendar").datepicker({ minDate: new Date(2008, 1 - 1, 1), maxDate: new Date(2010, 1 - 1, 1), rangeSelect: true, numberOfMonths: 5, changeMonth: false, changeYear: false, statusForDate: highlightToday, //beforeShowDay: $.datepicker.noWeekends, }).children("div").css("width","100%").css("margin","0 auto"); }); function highlightToday(date, inst) { var today = new Date(); today = new Date(today.getFullYear(), today.getMonth(), today.getDate()); return $.datepicker.dateStatus(date, inst) + (today.getTime() == date.getTime() ? ' (today)' : ''); }
Attachments (0)
Change History (5)
Changed July 17, 2008 05:36AM UTC by comment:1
owner: | grabanski → kbwood |
---|---|
status: | new → assigned |
Changed July 18, 2008 02:56AM UTC by comment:2
I have upgraded to 1.5.2 and still see "1, 2, 2, 3, 4, ..." for November '08 and "1, 1, 2, 3, ..." for November '09.
The server this is running on is in CST.
Changed July 18, 2008 03:50PM UTC by comment:3
It's the client time zone that is important as this is where the datepicker is rendered. What country/city is your time zone set to? (I've no idea what CST is.)
Changed July 23, 2008 12:31AM UTC by comment:4
Sorry for not getting back to you sooner, kbwood.
I have experienced this in GMT -06:00 (Texas, United States) and GMT -08:00 (California, United States).
Changed July 23, 2008 05:29PM UTC by comment:5
resolution: | → fixed |
---|---|
status: | assigned → closed |
Fixed. Check both UTC and normal date to step through the days.
This should have been fixed in 1.5.2. It was found to be a problem with specific time zones and the shift to/from summer time.
What time zone are you in?