Skip to content
Snippets Groups Projects
Commit 1bc0f6c9 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: do not show end date when it is same than start date

parent 29349546
No related branches found
No related tags found
No related merge requests found
...@@ -210,7 +210,10 @@ class FormActions ...@@ -210,7 +210,10 @@ class FormActions
{ {
$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']) print '-'.dol_print_date($action->datef,'hour'); 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');
}
else print '-'.dol_print_date($action->datef,'dayhour'); else print '-'.dol_print_date($action->datef,'dayhour');
} }
print '</td>'; print '</td>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment