From fbbb235081103a3c9897c3e3ef198944c9b6fe2d Mon Sep 17 00:00:00 2001 From: Albert Peschar Date: Mon, 14 Aug 2017 10:27:58 +0200 Subject: [PATCH] Use modification time from properties when saving Excel5 --- Classes/PHPExcel/Writer/Excel5.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Writer/Excel5.php b/Classes/PHPExcel/Writer/Excel5.php index 2dede819a..003b6e87e 100644 --- a/Classes/PHPExcel/Writer/Excel5.php +++ b/Classes/PHPExcel/Writer/Excel5.php @@ -209,7 +209,8 @@ public function save($pFilename = null) $arrRootData[] = $OLE_DocumentSummaryInformation; } - $root = new PHPExcel_Shared_OLE_PPS_Root(time(), time(), $arrRootData); + $time = $this->phpExcel->getProperties()->getModified(); + $root = new PHPExcel_Shared_OLE_PPS_Root($time, $time, $arrRootData); // save the OLE file $res = $root->save($pFilename);