diff --git a/upload/admin/controller/catalog/product.php b/upload/admin/controller/catalog/product.php index 77acb6dddf5..fc1052eb501 100644 --- a/upload/admin/controller/catalog/product.php +++ b/upload/admin/controller/catalog/product.php @@ -768,7 +768,7 @@ public function form(): void { } if (!empty($product_info)) { - $data['date_available'] = ($product_info['date_available'] != '0000-00-00') ? date('Y-m-d', strtotime($product_info['date_available'])) : ''; + $data['date_available'] = ($product_info['date_available'] != '0000-00-00') ? $product_info['date_available'] : ''; } else { $data['date_available'] = date('Y-m-d'); } @@ -1029,10 +1029,6 @@ public function form(): void { } } - - - - $data['product_options'][] = [ 'product_option_id' => $product_option['product_option_id'], 'product_option_value' => $product_option_value_data,