Add Writer support for DateTime values (reader already supports and returns this type)

This commit is contained in:
ChronicLogic 2020-12-12 13:27:24 -07:00
parent ab973cab34
commit d077e9ab7e

View File

@ -214,6 +214,8 @@ EOD;
if ($cell->isString()) {
$cellXML .= $this->getCellXMLFragmentForNonEmptyString($cell->getValue());
} elseif ($cell->isDate()) {
$cellXML .= ' t="d"><v>' . ($cell->getValue()->format(\DateTime::ATOM)) . '</v></c>';
} elseif ($cell->isBoolean()) {
$cellXML .= ' t="b"><v>' . (int) ($cell->getValue()) . '</v></c>';
} elseif ($cell->isNumeric()) {