time step problem

i have a time step problem

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

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

	scheduler.templates.hour_scale = function(date){
		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;

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

Please help!

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 )