Roo/form/MonthField.js
authorAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 11:21:31 +0000 (19:21 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 11:21:31 +0000 (19:21 +0800)
Roo/form/MonthField.js

index 13b26d0..ab060e7 100644 (file)
@@ -264,7 +264,7 @@ monthField.setValue('2006-5-4');
     // private
     parseDate : function(value){
         if(!value || value instanceof Date){
-            value = value ? Date.parseDate(value.format('Y-m-01')) : null;
+            value = value ? Date.parseDate(value.format('Y-m') + '-01', 'Y-m-d') : null;
             return value;
         }
         var v = Date.parseDate(value, this.format);