Skip to main content

Search and Top Navigation

#9508 closed bug (worksforme)

Opened August 22, 2013 02:37PM UTC

Closed August 22, 2013 02:45PM UTC

Last modified August 22, 2013 03:03PM UTC

Datepicker: beforeShowDay completely broken

Reported by: stijnherreman Owned by:
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:
Description

Take the minified test case by scott.gonzalez on http://bugs.jqueryui.com/ticket/8953

Reproducible with that one (v1.9.2) and with the current v1.10.3 at http://jsfiddle.net/UwLEy/

Output on IE 10:

Sun Jul 28 00:00:00 UTC+0200 2013 
Mon Jul 29 00:00:00 UTC+0200 2013 
...
Fri Oct 4 00:00:00 UTC+0200 2013 
Sat Oct 5 00:00:00 UTC+0200 2013 

Output on Firefox 23

Date {Sun Jul 28 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Mon Jul 29 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Tue Jul 30 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Wed Jul 31 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Thu Aug 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Fri Aug 02 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sat Aug 03 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Sep 01 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}
Date {Sun Oct 06 2013 00:00:00 GMT+0200 (Romance Standard Time)}

Output on Chrome:

Sun Jul 28 2013 00:00:00 GMT+0200 (Romance Daylight Time)
Mon Jul 29 2013 00:00:00 GMT+0200 (Romance Daylight Time)
..
Fri Oct 04 2013 00:00:00 GMT+0200 (Romance Daylight Time)
Sat Oct 05 2013 00:00:00 GMT+0200 (Romance Daylight Time)

However, I swear just a few minutes ago I observed the same behaviour as Firefox in Chrome. And so did my colleague on his pc, so no I am not going insane.

What's going on?

Attachments (0)
Change History (3)

Changed August 22, 2013 02:45PM UTC by scottgonzalez comment:1

component: ui.coreui.datepicker
resolution: → worksforme
status: newclosed

Presumably you're leaving the console closed while logging. There's no problem with the callback.

Changed August 22, 2013 02:53PM UTC by stijnherreman comment:2

Opening the console after it has run on Chrome is indeed a way to reproduce it. But on Firefox, even if the console is open and you re-run the test, the same results are produced.

Is this a browser issue then?

Changed August 22, 2013 03:03PM UTC by scottgonzalez comment:3

Yes. If you try to actually do anything useful, you'll notice there are no problems. You can also log the toString of the date...