minical date is off by 1 day

Hi,

Trying to suss out what is going on here.

Here’s some code:

        alert(scheduler._date);
        scheduler.renderCalendar({
            position:"dhx_minical_icon",
            date:scheduler._date,
            navigation:true,
            handler:function(date, calendar){
                scheduler.setCurrentView(date);
                alert(date);
                scheduler.destroyCalendar();
            }
        });

alert(scheduler._date) outputs “Mon Oct 01 2012 00:00:00 GMT +0100 (GMT Daylight Time)”
alert(date) outputs “Mon Oct 01 2012 00:00:00 GMT +0100 (GMT Daylight Time)”
scheduler.setCurrentView(date) makes the calendar go to “2 Oct 2012”

The day is out by 1?

Any ideas.


Hello,

Can you please provide full sample?
And the reason you are looking at scheduler._date?

Best regards,
Ilya