diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index 6a073fb305d..af87ef4f6ee 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -2460,7 +2460,8 @@ elseif (! empty($object->id)) print ''; //print ''; print '';
'.$langs->trans("ToOrder").'
'.$langs->trans("OrderDate").''; - $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 '