Skip to content

Commit

Permalink
FIX prefilled date of order must have hours too
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jun 16, 2018
1 parent 186f08e commit 5524784
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/fourn/commande/card.php
Expand Up @@ -2460,7 +2460,8 @@
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>';

Expand Down

0 comments on commit 5524784

Please sign in to comment.