Read number formatting for Gnumeric... highlighted as not occurring when reading date values
This commit is contained in:
parent
52071e9f4a
commit
fe901d13b4
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue