if(typeof(this.time) === 'undefined') {
var now = new Date();
- this.time.setMinutes(Math.round(parseInt(now.format('i')) / this.minuteStep) * this.minuteStep);
+ Roo.log('NOW');
+ Roo.log(now.format('i'));
+ Roo.log('NEW');
+ var newMinute = Math.round(parseInt(now.format('i')) / this.minuteStep) * this.minuteStep;
+ Roo.log(newMinute);
}
this.time = (typeof(this.time) === 'undefined') ? new Date() : this.time;
- //var minutesToAdd = Math.round((parseInt(this.time.format('i')) + this.minuteStep) / this.minuteStep) * this.minuteStep - parseInt(this.time.format('i'));
this.fill();
},