diff --git a/src/ZfcDatagrid/Renderer/Csv/Renderer.php b/src/ZfcDatagrid/Renderer/Csv/Renderer.php index a0b51eee..195cff00 100644 --- a/src/ZfcDatagrid/Renderer/Csv/Renderer.php +++ b/src/ZfcDatagrid/Renderer/Csv/Renderer.php @@ -48,7 +48,7 @@ public function execute() $optionsExport = $options['settings']['export']; $path = $optionsExport['path']; - $saveFilename = $this->getCacheId() . '.csv'; + $saveFilename = date('Y-m-d_H-i-s') . $this->getCacheId() . '.csv'; $fp = fopen($path . '/' . $saveFilename, 'w'); diff --git a/src/ZfcDatagrid/Renderer/PHPExcel/Renderer.php b/src/ZfcDatagrid/Renderer/PHPExcel/Renderer.php index 201e0453..8247e344 100644 --- a/src/ZfcDatagrid/Renderer/PHPExcel/Renderer.php +++ b/src/ZfcDatagrid/Renderer/PHPExcel/Renderer.php @@ -220,7 +220,7 @@ public function execute() * Save the file */ $path = $optionsExport['path']; - $saveFilename = $this->getCacheId() . '.xlsx'; + $saveFilename = date('Y-m-d_H-i-s') . $this->getCacheId() . '.xlsx'; $excelWriter = new \PHPExcel_Writer_Excel2007($phpExcel); $excelWriter->setPreCalculateFormulas(false); diff --git a/src/ZfcDatagrid/Renderer/TCPDF/Renderer.php b/src/ZfcDatagrid/Renderer/TCPDF/Renderer.php index 5c6805d1..6fdf7831 100644 --- a/src/ZfcDatagrid/Renderer/TCPDF/Renderer.php +++ b/src/ZfcDatagrid/Renderer/TCPDF/Renderer.php @@ -111,7 +111,7 @@ protected function saveAndSend() $optionsExport = $options['settings']['export']; $path = $optionsExport['path']; - $saveFilename = $this->getCacheId() . '.pdf'; + $saveFilename = date('Y-m-d_H-i-s') . $this->getCacheId() . '.pdf'; $pdf->Output($path . '/' . $saveFilename, 'F'); $response = new ResponseStream();