Merge pull request #20869 from FHenry/dev_new_export_file_withdt

new: add hidden option to add export file with date time
This commit is contained in:
Laurent Destailleur 2022-05-16 20:58:45 +02:00 committed by GitHub
commit 249543e368
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;