diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 0e77f8512d3..b3aafa06ba2 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -112,7 +112,7 @@ if ($_POST['action'] == 'setdate_livraison') { $propal = new Propal($db); $propal->fetch($_GET['propalid']); - $result=$propal->set_date_livraison($user,$_POST['liv_year']."-".$_POST['liv_month']."-".$_POST['liv_day']); + $result=$propal->set_date_livraison($user,mktime(0, 0, 0, $_POST['liv_month'], $_POST['liv_day'], $_POST['liv_year']); if ($result < 0) dolibarr_print_error($db,$propal->error); } diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 8e7f1e46dea..9f50ece92d0 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -145,7 +145,7 @@ if ($_POST['action'] == 'setdate_livraison' && $user->rights->commande->creer) { $commande = new Commande($db); $commande->fetch($_GET['id']); - $commande->set_date_livraison($user,$_POST['liv_year']."-".$_POST['liv_month']."-".$_POST['liv_day']); + $commande->set_date_livraison($user,mktime(0, 0, 0, $_POST['liv_month'], $_POST['liv_day'], $_POST['liv_year']); } if ($_POST['action'] == 'setdeliveryadress' && $user->rights->commande->creer)