Adjust the date format for purchase_date field
This commit is contained in:
parent
bd0b00e361
commit
51efd9b413
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ class ItemImporter extends Importer
|
||||||
|
|
||||||
$this->item['purchase_date'] = null;
|
$this->item['purchase_date'] = null;
|
||||||
if ($this->findCsvMatch($row, 'purchase_date') != '') {
|
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;
|
$this->item['last_audit_date'] = null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue