Pman.Gnumeric.js
[Pman.Core] / Pman.Gnumeric.js
index 134084b..39085a9 100644 (file)
@@ -1383,17 +1383,21 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, {
                 
                 var value = g.value[0] == '=' ? 'CALCULATED' : g.value;
                 
-//                if(
-//                        typeof(g.styles.firstElementChild.attributes) != 'undefined' && 
-//                        typeof(g.styles.firstElementChild.attributes[12])
-//                ){
-//                    
-//                }
-                if(typeof(g.styles[0].firstElementChild.attributes[12].value) != 'undefined'){
-                    Roo.log(g.styles[0].firstElementChild.attributes[12].value);
+                try {
+                    if(
+                        g.styles[0].firstElementChild.getAttribute('Format') == "D\\-MMM\\-YYYY;@" &&
+                        g.value[0] != '='
+                    ){
+                        var vv = new Date(value);
+                        Roo.log(vv);
+                    }
+                    
+                } catch(e) {
+                    
                 }
                 
                 
+                
                 out+=String.format('<td colspan="{0}" rowspan="{1}"  class="{4}"><div style="{3}">{2}</div></td>', 
                     g.colspan, g.rowspan, value,
                     'overflow:hidden;' +