Merge pull request #12561 from inietov/fixes/unable_to_import_purchase_date

Fixed #12559 Unable to import Purchase Date field
This commit is contained in:
snipe 2023-02-24 10:02:25 -08:00 committed by GitHub
commit cb0b234b80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;