From: Edward Date: Thu, 18 Jun 2015 10:37:27 +0000 (+0800) Subject: Pman.Gnumeric.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=60cd751ce7948ebb8390a4f7965b1c5e704f0e50 Pman.Gnumeric.js --- diff --git a/Pman.Gnumeric.js b/Pman.Gnumeric.js index 377e63c2..815ce3de 100644 --- a/Pman.Gnumeric.js +++ b/Pman.Gnumeric.js @@ -1387,10 +1387,9 @@ 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) + !isNaN(value * 1) && + value != 0 ){ - Roo.log(value); value = new Date(value * 24 * 60 * 60 * 1000 + new Date('1900-01-01').getTime()).format('d-M-Y'); }