Fix hack
This commit is contained in:
parent
b11d31fea0
commit
d910699f53
@ -549,21 +549,19 @@ if ($num > 0) {
|
|||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
$datefromto = (empty($obj->datestart) ? '' : dol_print_date($db->jdate($obj->datestart), 'dayhour', 'tzserver')).' - '.(empty($obj->dateend) ? '' : dol_print_date($db->jdate($obj->dateend), 'dayhour', 'tzserver'));
|
print '<td class="center">';
|
||||||
|
|
||||||
print '<td class="center" title="'.dol_escape_htmltag($datefromto).'">';
|
|
||||||
if (!empty($obj->datestart)) {
|
if (!empty($obj->datestart)) {
|
||||||
print dol_print_date($db->jdate($obj->datestart), 'dayhour', 'tzserver');
|
print dol_print_date($db->jdate($obj->datestart), 'dayhour', 'tzserver');
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td class="center" title="'.dol_escape_htmltag($datefromto).'">';
|
print '<td class="center">';
|
||||||
if (!empty($obj->dateend)) {
|
if (!empty($obj->dateend)) {
|
||||||
print dol_print_date($db->jdate($obj->dateend), 'dayhour', 'tzserver');
|
print dol_print_date($db->jdate($obj->dateend), 'dayhour', 'tzserver');
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print '<td class="right" title="'.dol_escape_htmltag($datefromto).'">';
|
print '<td class="right">';
|
||||||
if (!empty($obj->nbrun)) {
|
if (!empty($obj->nbrun)) {
|
||||||
print $obj->nbrun;
|
print $obj->nbrun;
|
||||||
} else {
|
} else {
|
||||||
@ -574,15 +572,17 @@ if ($num > 0) {
|
|||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
|
$datefromto = (empty($datelastrun) ? '' : dol_print_date($datelastrun, 'dayhour', 'tzserver')).' - '.(empty($datelastresult) ? '' : dol_print_date($datelastresult, 'dayhour', 'tzserver'));
|
||||||
|
|
||||||
// Date start last run
|
// Date start last run
|
||||||
print '<td class="center">';
|
print '<td class="center" title="'.dol_escape_htmltag($datefromto).'">';
|
||||||
if (!empty($datelastrun)) {
|
if (!empty($datelastrun)) {
|
||||||
print dol_print_date($datelastrun, 'dayhoursec', 'tzserver');
|
print dol_print_date($datelastrun, 'dayhoursec', 'tzserver');
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Duration
|
// Duration
|
||||||
print '<td class="center">';
|
print '<td class="center" title="'.dol_escape_htmltag($datefromto).'">';
|
||||||
if (!empty($datelastresult) && ($datelastresult >= $datelastrun)) {
|
if (!empty($datelastresult) && ($datelastresult >= $datelastrun)) {
|
||||||
print convertSecondToTime(max($datelastresult - $datelastrun, 1), 'allhourminsec');
|
print convertSecondToTime(max($datelastresult - $datelastrun, 1), 'allhourminsec');
|
||||||
//print '<br>'.($datelastresult - $datelastrun).' '.$langs->trans("seconds");
|
//print '<br>'.($datelastresult - $datelastrun).' '.$langs->trans("seconds");
|
||||||
@ -590,7 +590,7 @@ if ($num > 0) {
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Return code of last run
|
// Return code of last run
|
||||||
print '<td class="center">';
|
print '<td class="center" title="'.dol_escape_htmltag($datefromto).'">';
|
||||||
if ($obj->lastresult != '') {
|
if ($obj->lastresult != '') {
|
||||||
if (empty($obj->lastresult)) {
|
if (empty($obj->lastresult)) {
|
||||||
print $obj->lastresult;
|
print $obj->lastresult;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user