|
|
|
@ -490,7 +490,7 @@ class CarInfoHandle |
|
|
|
|
for ($row = 2; $row <= $highestRow; $row++) { |
|
|
|
|
$register_date = $worksheet->getCellByColumnAndRow(2, $row)->getValue(); |
|
|
|
|
if (is_numeric($register_date)) |
|
|
|
|
$register_date = \PhpOffice\PhpSpreadsheet\Shared\Date::excelToDateTimeObject($register_date); |
|
|
|
|
$register_date = \PhpOffice\PhpSpreadsheet\Shared\Date::excelToTimestamp($register_date); |
|
|
|
|
$row_array[] = [ |
|
|
|
|
'duty_no' => trim(trim($worksheet->getCellByColumnAndRow(1, $row)->getValue(), '"')), |
|
|
|
|
'register_date' => date('Y-m-d', strtotime(trim(trim($register_date, '"')))), |
|
|
|
|