time step problem

i have a time step problem

this examble work good only for (5-10-15-20-30-60) minutes.

[code]
var step = 15;
var format = scheduler.date.date_to_str(“%H:%i”);

	scheduler.config.hour_size_px=(60/step)*21;
	scheduler.templates.hour_scale = function(date){
		html="";
		for (var i=0; i<60/step; i++){
			html+="<div style='height:21px;line-height:21px;'>"+format(date)+"</div>";
			date = scheduler.date.add(date,step,"minute");
		}
		return html;
	}[/code]

if i change step to 40 min, all “time steps” crash.

Please help!
thx

Unfortunately - it is caused by scheduler’s design. Time step must be a divider of 60 ( to fit all time chunks in one hour step )