Pman.Gnumeric.js
[Pman.Core] / Pman.Gnumeric.js
index f0852a6..377e63c 100644 (file)
@@ -1387,9 +1387,11 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, {
                     if(
                         g.styles[0].firstElementChild.getAttribute('Format') == "D\\-MMM\\-YYYY;@" &&
                         g.value[0] != '=' &&
+                        value.length && 
                         !isNaN(value * 1)
                     ){
-                        value = new Date(value * 24 * 60 * 60 * 1000 + new Date('1900-01-01').getTime());
+                        Roo.log(value);
+                        value = new Date(value * 24 * 60 * 60 * 1000 + new Date('1900-01-01').getTime()).format('d-M-Y');
                     }
                     
                 } catch(e) {