Roo/bootstrap/DateField.js
authorEdward <edward@roojs.com>
Mon, 9 Mar 2015 03:27:24 +0000 (11:27 +0800)
committerEdward <edward@roojs.com>
Mon, 9 Mar 2015 03:27:24 +0000 (11:27 +0800)
Roo/bootstrap/DateField.js

index fcd3c45..fad44f9 100644 (file)
@@ -537,7 +537,6 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input,  {
     setValue: function(v)
     {
         var d = new Date(v).clearTime();
-        Roo.log(d);
         
         if(isNaN(d.getTime())){
             this.date = this.viewDate = '';
@@ -549,8 +548,7 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input,  {
         
         Roo.bootstrap.DateField.superclass.setValue.call(this, v);
         
-//        this.date = this.viewDate = new Date(d.getTime());
-        this.date = this.viewDate = new Date(d.getTime() - d.getTimezoneOffset()*60000);
+        this.date = new Date(d.getTime() - d.getTimezoneOffset()*60000);
      
         this.update();