Read number formatting for Gnumeric... highlighted as not occurring when reading date values

This commit is contained in:
MarkBaker 2022-02-26 15:08:12 +01:00
parent 52071e9f4a
commit fe901d13b4
1 changed files with 6 additions and 0 deletions

View File

@ -331,7 +331,13 @@ class Gnumeric extends BaseReader
$cell = $cell == 'TRUE';
}
}
$this->spreadsheet->getActiveSheet()->getCell($column . $row)->setValueExplicit((string) $cell, $type);
if (isset($cellAttributes->ValueFormat)) {
$this->spreadsheet->getActiveSheet()->getCell($column . $row)
->getStyle()->getNumberFormat()
->setFormatCode((string) $cellAttributes->ValueFormat);
}
}
if ($sheet->Styles !== null) {