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:
commit
249543e368
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user