This repository has been archived by the owner on May 26, 2022. It is now read-only.
Writer doesn't support writing DateTime
objects
#751
Labels
DateTime
objects
#751
According to
Box\Spout\Common\Entity\Cell
, aDateTime
object is a valid cell value, and it is correctly assigned the typeTYPE_DATE
. But it seems the writer implementations do not support it: when trying to write a sheet that contains aTYPE_DATE
cell, the writer throwsBox\Spout\Common\Exception\InvalidArgumentException: Trying to add a value with an unsupported type: object
(Happened in ODS writer but the code looks similar for XLS and looks like CSV just tries to stringify all the cells, which will not work because
DateTime
does not have a__toString()
method).The text was updated successfully, but these errors were encountered: