Skip to content

Commit

Permalink
Include date in SEPA export file name.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtronics committed Sep 28, 2020
1 parent 5b2fe9f commit aab8f0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Controller/ExportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ public function export(Request $request, EntityManagerInterface $entityManager)
$form->getData()
);

$filename = "export.xml";


$filename = "export_" . date("Y-m-d_H-i-s") . ".xml";

//Download as file
return $this->getDownloadResponse($xml_string, $filename);
Expand Down

0 comments on commit aab8f0d

Please sign in to comment.