Use modification time from properties when saving Excel5

This commit is contained in:
MarkBaker
2021-05-09 14:27:50 +02:00
committed by Mark Baker
parent 2ddb23574e
commit a0719d8dd4
+2 -1
View File
@@ -219,7 +219,8 @@ class Xls extends BaseWriter
$arrRootData[] = $OLE_DocumentSummaryInformation;
}
$root = new Root(time(), time(), $arrRootData);
$time = $this->spreadsheet->getProperties()->getModified();
$root = new Root($time, $time, $arrRootData);
// save the OLE file
$this->openFileHandle($pFilename);
$root->save($this->fileHandle);