Fix date output
This commit is contained in:
parent
33aa0f3160
commit
02cae88a8c
@ -249,14 +249,14 @@ class FormActions
|
|||||||
print $action->type;
|
print $action->type;
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>'.$label.'</td>';
|
print '<td>'.$label.'</td>';
|
||||||
print '<td align="center">'.dol_print_date($action->datep,'dayhour');
|
print '<td align="center">'.dol_print_date($action->datep, 'dayhour', 'tzuserrel');
|
||||||
if ($action->datef)
|
if ($action->datef)
|
||||||
{
|
{
|
||||||
$tmpa=dol_getdate($action->datep);
|
$tmpa=dol_getdate($action->datep);
|
||||||
$tmpb=dol_getdate($action->datef);
|
$tmpb=dol_getdate($action->datef);
|
||||||
if ($tmpa['mday'] == $tmpb['mday'] && $tmpa['mon'] == $tmpb['mon'] && $tmpa['year'] == $tmpb['year'])
|
if ($tmpa['mday'] == $tmpb['mday'] && $tmpa['mon'] == $tmpb['mon'] && $tmpa['year'] == $tmpb['year'])
|
||||||
{
|
{
|
||||||
if ($tmpa['hours'] != $tmpb['hours'] || $tmpa['minutes'] != $tmpb['minutes'] && $tmpa['seconds'] != $tmpb['seconds']) print '-'.dol_print_date($action->datef,'hour');
|
if ($tmpa['hours'] != $tmpb['hours'] || $tmpa['minutes'] != $tmpb['minutes'] && $tmpa['seconds'] != $tmpb['seconds']) print '-'.dol_print_date($action->datef, 'hour', 'tzuserrel');
|
||||||
}
|
}
|
||||||
else print '-'.dol_print_date($action->datef, 'dayhour', 'tzuserrel');
|
else print '-'.dol_print_date($action->datef, 'dayhour', 'tzuserrel');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user