new: add hidden option to add export file with date time

This commit is contained in:
Florian HENRY 2022-05-13 09:58:00 +02:00
parent 775a8c5334
commit 9b0c7d0904

View File

@ -615,6 +615,9 @@ class Export
} else {
$filename = "export_".$datatoexport;
}
if (!empty($conf->global->EXPORT_NAME_WITH_DT)) {
$filename .= dol_print_date(dol_now(), '%Y%m%d%_%H%M');
}
$filename .= '.'.$objmodel->getDriverExtension();
$dirname = $conf->export->dir_temp.'/'.$user->id;