support custom format dates such as "[$-409]mmm\-yy"
This commit is contained in:
parent
2a756fffcc
commit
85bcbf7c32
7
xlsx.js
7
xlsx.js
|
@ -7231,7 +7231,12 @@ function get_cell_style(styles, cell, opts) {
|
|||
function safe_format(p, fmtid, fillid, opts) {
|
||||
try {
|
||||
if(p.t === 'e') p.w = p.w || BErr[p.v];
|
||||
else if(fmtid === 0) {
|
||||
else if (p.t=='n' && fmtid >= 164) {
|
||||
p.t = 's';
|
||||
p.v = SSF.format(fmtid,p.v,_ssfopts);
|
||||
// p.w = p.v;
|
||||
// console.log('p.w', p);
|
||||
} else if(fmtid === 0) {
|
||||
if(p.t === 'n') {
|
||||
if((p.v|0) === p.v) p.w = SSF._general_int(p.v,_ssfopts);
|
||||
else p.w = SSF._general_num(p.v,_ssfopts);
|
||||
|
|
Loading…
Reference in New Issue