Roo/bootstrap/form/TimeField.js
[roojs1] / roojs-bootstrap-debug.js
index c187378..be333a5 100644 (file)
@@ -24211,6 +24211,12 @@ Roo.extend(Roo.bootstrap.form.TimeField, Roo.bootstrap.form.Input,  {
     update: function()
     {
         
+        if(typeof(this.time) === 'undefined') {
+            this.time = new Date();
+            Roo.log(this.time);
+            this.time = this.time.add(Date.MINUTE, Math.round(parseInt(this.time.format('i')) / this.minuteStep) * this.minuteStep - parseInt(this.time.format('i')));
+            Roo.log(this.time);
+        }
         this.time = (typeof(this.time) === 'undefined') ? new Date() : this.time;
         
         this.fill();