Adjust the date format for purchase_date field

This commit is contained in:
Ivan Nieto Vivanco 2023-02-24 10:59:31 -06:00
parent bd0b00e361
commit 51efd9b413

View file

@ -74,7 +74,7 @@ class ItemImporter extends Importer
$this->item['purchase_date'] = null;
if ($this->findCsvMatch($row, 'purchase_date') != '') {
$this->item['purchase_date'] = date('Y-m-d 00:00:01', strtotime($this->findCsvMatch($row, 'purchase_date')));
$this->item['purchase_date'] = date('Y-m-d', strtotime($this->findCsvMatch($row, 'purchase_date')));
}
$this->item['last_audit_date'] = null;