mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
Debug v23
This commit is contained in:
@@ -297,16 +297,39 @@ class FormActions
|
||||
print '<td class="nowraponall nopaddingrightimp">'.$actioncomm->getNomUrl(1, -1).'</td>';
|
||||
|
||||
// Date
|
||||
print '<td class="center nowraponall">'.dol_print_date($actioncomm->datep, 'dayhourreduceformat', 'tzuserrel');
|
||||
if ($actioncomm->datef) {
|
||||
print '<td class="center nowraponall nopaddingtopimp nopaddingbottomimp">';
|
||||
if ($actioncomm->datef) { // There is also a end date
|
||||
$tmpa = dol_getdate($actioncomm->datep);
|
||||
$tmpb = dol_getdate($actioncomm->datef);
|
||||
if ($tmpa['mday'] == $tmpb['mday'] && $tmpa['mon'] == $tmpb['mon'] && $tmpa['year'] == $tmpb['year']) {
|
||||
// The same day
|
||||
if ($tmpa['hours'] != $tmpb['hours'] || $tmpa['minutes'] != $tmpb['minutes']) {
|
||||
print '-'.dol_print_date($actioncomm->datef, 'hour', 'tzuserrel');
|
||||
print dol_print_date($actioncomm->datep, 'dayreduceformat', 'tzuserrel');
|
||||
print '<br><span class="small opacitymedium">';
|
||||
print dol_print_date($actioncomm->datep, 'hourreduceformat', 'tzuserrel');
|
||||
print '-'.dol_print_date($actioncomm->datef, 'hourreduceformat', 'tzuserrel');
|
||||
print '</span>';
|
||||
} else {
|
||||
print dol_print_date($actioncomm->datep, 'dayreduceformat', 'tzuserrel');
|
||||
print '<br><span class="small opacitymedium">';
|
||||
print dol_print_date($actioncomm->datep, 'hourreduceformat', 'tzuserrel');
|
||||
print '</span>';
|
||||
}
|
||||
} else {
|
||||
print '-'.dol_print_date($actioncomm->datef, 'dayhourreduceformat', 'tzuserrel');
|
||||
// Not the same day
|
||||
print '<div class="center inline-block">';
|
||||
print dol_print_date($actioncomm->datep, 'dayreduceformat', 'tzuserrel');
|
||||
print '<br><span class="small opacitymedium">';
|
||||
print dol_print_date($actioncomm->datep, 'hourreduceformat', 'tzuserrel');
|
||||
print '</span>';
|
||||
print '</div>';
|
||||
print ' ';
|
||||
print '<div class="center inline-block">';
|
||||
print dol_print_date($actioncomm->datef, 'dayreduceformat', 'tzuserrel');
|
||||
print '<br><span class="small opacitymedium">';
|
||||
print dol_print_date($actioncomm->datef, 'hourreduceformat', 'tzuserrel');
|
||||
print '</span>';
|
||||
print '</div>';
|
||||
}
|
||||
}
|
||||
print '</td>';
|
||||
|
||||
Reference in New Issue
Block a user