FIX prefilled date of order must have hours too

This commit is contained in:
Laurent Destailleur 2018-06-16 15:24:31 +02:00
parent 186f08e67b
commit 5524784421

View File

@ -2460,7 +2460,8 @@ elseif (! empty($object->id))
print '<table class="noborder" width="100%">';
//print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("ToOrder").'</td></tr>';
print '<tr><td>'.$langs->trans("OrderDate").'</td><td>';
$date_com = dol_mktime(0, 0, 0, GETPOST('remonth'), GETPOST('reday'), GETPOST('reyear'));
$date_com = dol_mktime(GETPOST('rehour','int'), GETPOST('remin','int'), GETPOST('resec','int'), GETPOST('remonth','int'), GETPOST('reday','int'), GETPOST('reyear','int'));
if (empty($date_com)) $date_com=dol_now();
print $form->select_date($date_com,'',1,1,'',"commande",1,1,1);
print '</td></tr>';