Roo/bootstrap/form/TimeField.js
authorleon <leon@roojs.com>
Wed, 9 Aug 2023 06:41:41 +0000 (14:41 +0800)
committerleon <leon@roojs.com>
Wed, 9 Aug 2023 06:41:41 +0000 (14:41 +0800)
Roo/bootstrap/form/TimeField.js

index c85e6e1..45a348f 100644 (file)
@@ -98,7 +98,7 @@ Roo.extend(Roo.bootstrap.form.TimeField, Roo.bootstrap.form.Input,  {
             true
         );
         this.inputEl().dom.setAttribute('name', this.name + '____hidden___');
-        this.hiddenField.value = this.time.dateFormat('h:i');
+        this.hiddenField.value = this.time.dateFormat('H:i:s');
 
     },
     
@@ -426,6 +426,12 @@ Roo.extend(Roo.bootstrap.form.TimeField, Roo.bootstrap.form.Input,  {
         
     },
 
+    setValue: function(v)
+    {
+        this.value = this.hiddenField.value =  '';
+        var v = this.time.format(this.format);
+    },
+
     getValue: function()
     {
         return this.hiddenField.value;