blockTime not working for Date

scheduler.blockTime([6,0], “fullday”); // works

scheduler.blockTime(new Date(2013,9,24), “fullday”); // doesn’t work

Am I missing something?

TIA,

David

Hello,
i’ve just checked it on our online examples and it seems working.
Here is the steps to confirm
1)Open the online example
docs.dhtmlx.com/scheduler/sample … ation.html
2)execute this code in browser console

scheduler.blockTime(new Date(2009, 6, 2), "fullday"); scheduler.updateView();

Are you sure you’ve specified correct date?

new Date(2013,9,24)
If you meant 24th of September, you should go with new Date(2013,8,24), since month numbers are zero-based in js Date

That’s it. Changed the 9 to an 8 and it’s working fine.

Thanks and sorry about that.

-D