Mini-calendar and weekview issue

hello
I’ve some issue with the mini calendar when I’m in the weekview. I think it’s because my weekview always start from “now”
My function is this one :

[code]function show_minical(){
	if (scheduler.isCalendarVisible())
		scheduler.destroyCalendar();
	else
		scheduler.renderCalendar({
			position:"dhx_minical_icon",
			date:scheduler._date,
			navigation:true,
			handler:function(date,calendar){
				scheduler.setCurrentView(date);
				scheduler.destroyCalendar();
			}
		});
}[/code]

I init my scheduler like this :

scheduler.date.week_start = scheduler.date.day_start; scheduler.init('scheduler_here',new Date(),"week");

The problem is in the mini calendar, for example if I select October 17, it’s viewed as a Sunday, but it’s a Monday.


Thanks for your help.
Loïc

Hello.

“week_start” function is used much times in scheduler and it’s not very good idea to redefine it.
Possibly for your needs you could try to create custom view which starts at any day and shows 7 days.
See article: docs.dhtmlx.com/scheduler/custom_views.html
For example: docs.dhtmlx.com/scheduler/snippet/92bf0e9d