From 587c3fd2e95fcc761cd8fecc9ed764f93f275c31 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 23 Nov 2020 08:25:49 +1100 Subject: [PATCH] remove carbon array from migration resources and transform to date string --- app/Traits/GenerateMigrationResources.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Traits/GenerateMigrationResources.php b/app/Traits/GenerateMigrationResources.php index 5f24b868f5c5..a4708a7588f8 100644 --- a/app/Traits/GenerateMigrationResources.php +++ b/app/Traits/GenerateMigrationResources.php @@ -770,7 +770,7 @@ trait GenerateMigrationResources 'tax_rate2' => (float) $item->tax_rate2, 'tax_name3' => (string) '', 'tax_rate3' => (float) 0, - 'date' => $item->created_at, + 'date' => Carbon::parse($item->created_at)->toDateString(), 'custom_value1' => $item->custom_value1, 'custom_value2' => $item->custom_value2, 'type_id' => $item->invoice_item_type_id,