forked from exceljs/exceljs
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Milestone
Description
spec/integration/issues/issue-1328-xlsx-worksheet-reader-date.spec.js:28:28
switch (c.t) {
case 's': {
const index = parseInt(c.v.text, 10);
if (sharedStrings) {
cell.value = sharedStrings[index];
} else {
cell.value = {
sharedString: index,
};
}
break;
}
case 'inlineStr':
case 'str':
cell.value = utils.xmlDecode(c.v.text);
break;
case 'e':
cell.value = {error: c.v.text};
break;
case 'b':
cell.value = parseInt(c.v.text, 10) !== 0;
break;
default:
if (utils.isDateFmt(cell.numFmt)) {
cell.value = utils.excelToDate(
parseFloat(c.v.text),
properties.model && properties.model.date1904
);
} else {
cell.value = parseFloat(c.v.text);
}
break;
}
}
Ultimately, the value that is being read here is the first value in the first cell but we want to read the value in A2 because it contains the matching date for the test.
Metadata
Metadata
Assignees
Labels
No labels