Date format in events is working with [Month -1 ]

I tried to add an event today (2013-09-25) with date format this way:

scheduler.addEvent({
    start_date: new Date(2013,9,25,10), end_date: new Date(2013,9,25,11),
    text: "xxxx",
});

This didn’t work, then i read this:

docs.dhtmlx.com/scheduler/api__s … ntnow.html

And substracting 1 to current month this worked: ¿¿??

scheduler.addEvent({
    start_date: new Date(2013,8,25,10), end_date: new Date(2013,8,25,11),
    text: "xxxx",
});

It’s really very strange.

This is how the javascript date works, months are zero-based