Add DateTime support to ODS writer
This commit is contained in:
parent
ab973cab34
commit
25742181f8
@ -209,6 +209,11 @@ class WorksheetManager implements WorksheetManagerInterface
|
||||
$data .= ' office:value-type="string" calcext:value-type="error" office:value="">';
|
||||
$data .= '<text:p>' . $cell->getValueEvenIfError() . '</text:p>';
|
||||
$data .= '</table:table-cell>';
|
||||
} elseif ($cell->isDate()) {
|
||||
$dateStr = $cell->getValue()->format('Y-m-d');
|
||||
$data .= ' office:value-type="date" office:date-value="' . $dateStr . '" calcext:value-type="date">';
|
||||
$data .= '<text:p>' . $dateStr . '</text:p>';
|
||||
$data .= '</table:table-cell>';
|
||||
} elseif ($cell->isEmpty()) {
|
||||
$data .= '/>';
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user