Correct date format

This commit is contained in:
Benjamin Chantalat 2021-09-24 14:10:19 +02:00
parent 95342777d9
commit 5cf90d0247

View File

@ -382,9 +382,9 @@ class CommandeFournisseur extends CommonOrder
$this->date_approve2 = $this->db->jdate($obj->date_approve2);
$this->date_commande = $this->db->jdate($obj->date_commande); // date we make the order to supplier
if (isset($this->date_commande)) {
$this->date = $this->date_commande;
$this->date = $this->db->jdate($obj->date_commande);
} else {
$this->date = $this->date_creation;
$this->date = $this->db->jdate($obj->date_creation);
}
$this->date_livraison = $this->db->jdate($obj->delivery_date); // deprecated
$this->delivery_date = $this->db->jdate($obj->delivery_date);