Done!
I found interesting bug in this lines of my code:
$tab->fields->add(new Kwf_Form_Field_TimeField('flightStartTime', trlKwf('Start Time')))->setIncrement(5);
$tab->fields->add(new Kwf_Form_Field_TimeField('flightStartActualTime', 'Факт. время'))->setIncrement(5);
After I comment this my project works normal.
Then I found that this time incremen (setIncremet(5)) is reason of endless loop.
In \library\ext\2.3.0\src\widgets\form\TimeField.js:
// private - This is the date to use when generating time values in the absence of either minValue
// or maxValue. Using the current date causes DST issues on DST boundary dates, so this is an
// arbitrary "safe" date that can be any date aside from DST boundary dates.
initDate: '1/1/2008',
// private
initComponent : function(){
Ext.form.TimeField.superclass.initComponent.call(this);
if(typeof this.minValue == "string"){
this.minValue = this.parseDate(this.minValue);
}
if(typeof this.maxValue == "string"){
this.maxValue = this.parseDate(this.maxValue);
}
if(!this.store){
var min = this.parseDate(this.minValue);
if(!min){
min = new Date(this.initDate).clearTime();
}
var max = this.parseDate(this.maxValue);
if(!max){
max = new Date(this.initDate).clearTime().add('mi', (24 * 60) - 1);
}
var times = [];
while(min <= max){
times.push([min.dateFormat(this.format)]);
min = min.add('mi', this.increment);
}
this.store = new Ext.data.SimpleStore({
fields: ['text'],
data : times
});
this.displayField = 'text';
}
},
What I see in debug in max and min variables:
min = Tue Jan 01 2008 00:00:00 GMT+1000
max = Tue Jan 01 2008 23:59:00 GMT+1000
when min value set to 23:55 next increment change it to 23:00 and do it again and again => endless loop
I change this:
while(min <= max) {
times.push([min.dateFormat(this.format)]);
min = min.add('mi', this.increment);
}
to this:
do {
times.push([min.dateFormat(this.format)]);
min = min.add('mi', this.increment);
}
while(min <= max);
It works normal now.
Also I set initDate: '10/26/2014',