Skip to content

Commit

Permalink
Create Carbon object from ->paid_date during database migration (#871)
Browse files Browse the repository at this point in the history
Co-authored-by: AJ Silva <me@ajcsilva.com>
  • Loading branch information
ajcsilva and AJ Silva committed May 20, 2023
1 parent 8776b0e commit 04c5797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Commands/MigrateOrderStatuses.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected function migrateForDatabaseOrders(): void

$model->data = array_merge($model->data, [
'status_log' => [
'paid' => $model->paid_date->format('Y-m-d H:i'),
'paid' => Carbon::parse($model->paid_date)->format('Y-m-d H:i'),
],
]);

Expand Down

0 comments on commit 04c5797

Please sign in to comment.