|
@@ -278,8 +278,8 @@ class doc_generic_recruitmentjobposition_odt extends ModelePDFRecruitmentJobPosi
|
|
//$file=$dir.'/'.$newfiletmp.'.'.dol_print_date(dol_now(),'%Y%m%d%H%M%S').'.odt';
|
|
//$file=$dir.'/'.$newfiletmp.'.'.dol_print_date(dol_now(),'%Y%m%d%H%M%S').'.odt';
|
|
// Get extension (ods or odt)
|
|
// Get extension (ods or odt)
|
|
$newfileformat = substr($newfile, strrpos($newfile, '.') + 1);
|
|
$newfileformat = substr($newfile, strrpos($newfile, '.') + 1);
|
|
- if (getDolGlobalInt('MAIN_DOC_USE_TIMING')) {
|
|
|
|
- $format = getDolGlobalInt('MAIN_DOC_USE_TIMING');
|
|
|
|
|
|
+ if (getDolGlobalString('MAIN_DOC_USE_TIMING')) {
|
|
|
|
+ $format = getDolGlobalString('MAIN_DOC_USE_TIMING');
|
|
if ($format == '1') {
|
|
if ($format == '1') {
|
|
$format = '%Y%m%d%H%M%S';
|
|
$format = '%Y%m%d%H%M%S';
|
|
}
|
|
}
|