Wrong gantt chart date?

Hi I just noticed this a while ago but why does my gantt chart’s month start at june? Here’s the code:
var parentTask1 = new GanttTaskInfo(1, “Project1 task 1”, new Date(2010, 5, 11), 208, 50, “”);
parentTask1.addChildTask(new GanttTaskInfo(2, “Project1 task 2”, new Date(2010, 5, 11), 100, 40, “”));
parentTask1.addChildTask(new GanttTaskInfo(13, “Project1 task 13”, new Date(2010, 5, 12), 80, 90, “”));

as you can see, the project should start in may 11 but in the gantt chart it started on june 11. Any idea how to fix this? Thanks!

Please read the docs carefully, JavaScript Date() object month part starts from zero (0), so new Date(2010, 5, 11) means 2010, June, 11. Sorry, but it’s an ugly JS month index.

oh sorry for that didn’t notice that one. Anyway this is a great gantt chart. Keep it up!