mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-30 12:07:56 +00:00
Use modification time from properties when saving Excel5
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user