← All changes
|
app/Http/Controllers/FrontendControllers/CustomerOrderController.php
+2
-3
1.6.4
→
1.6.5
View file →
| @@ -29,9 +29,8 @@ | ||
| 29 | 29 | use FluentCart\App\Services\Renderer\Receipt\TaxSummaryHelper; |
| 30 | 30 | use FluentCart\Framework\Database\Orm\Builder; |
| 31 | 31 | use FluentCart\Framework\Database\Orm\Relations\HasMany; |
| 32 | 32 | use FluentCart\Framework\Http\Request\Request; |
| 33 | -use FluentCart\App\Services\DateTime\DateTime; | |
| 34 | 33 | use FluentCart\Framework\Support\Arr; |
| 35 | 34 | use FluentCart\Framework\Support\Collection; |
| 36 | 35 | use FluentCart\Framework\Validator\Validator; |
| 37 | 36 | use FluentCartPro\App\Modules\Licensing\Models\License; |
| @@ -82,9 +81,9 @@ | ||
| 82 | 81 | ->paginate($perPage, ['*'], 'page', $page); |
| 83 | 82 | |
| 84 | 83 | $orders->transform(function ($order) { |
| 85 | 84 | return [ |
| 86 | - 'created_at' => DateTime::gmtToTimezone($order->created_at, Arr::get($order->config, 'user_tz', wp_timezone_string()))->format('Y-m-d H:i:s'), | |
| 85 | + 'created_at' => $order->created_at->format('Y-m-d H:i:s'), | |
| 87 | 86 | 'invoice_no' => $order->invoice_no, |
| 88 | 87 | 'total_amount' => $order->total_amount, |
| 89 | 88 | 'currency' => $order->currency, |
| 90 | 89 | 'uuid' => $order->uuid, |
| @@ -265,9 +264,9 @@ | ||
| 265 | 264 | |
| 266 | 265 | $formattedOrderData = [ |
| 267 | 266 | 'fulfillment_type' => $order->fulfillment_type, |
| 268 | 267 | 'type' => $order->type, |
| 269 | - 'created_at' => DateTime::gmtToTimezone($order->created_at, Arr::get($order->config, 'user_tz', wp_timezone_string()))->format('Y-m-d H:i:s'), | |
| 268 | + 'created_at' => $order->created_at->format('Y-m-d H:i:s'), | |
| 270 | 269 | 'invoice_no' => $order->invoice_no, |
| 271 | 270 | 'currency' => $order->currency, |
| 272 | 271 | 'uuid' => $order->uuid, |
| 273 | 272 | 'order_items' => $orderItems, |