| @@ -6,9 +6,9 @@ | ||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | $reminder = (isset($reminder) && is_array($reminder)) ? $reminder : []; |
| 9 | 9 | $dueAt = \FluentCart\Framework\Support\Arr::get($reminder, 'due_at', ''); |
| 10 | -$dueDate = $dueAt ? \FluentCart\App\Services\DateTime\DateTime::gmtToTimezone($dueAt)->format('M d, Y h:i A') : ''; | |
| 10 | +$dueDate = \FluentCart\App\Services\DateTime\DateFormatter::format($dueAt, true, $order); | |
| 11 | 11 | $dueAmount = \FluentCart\Framework\Support\Arr::get($reminder, 'due_amount', 0); |
| 12 | 12 | if (!$dueAmount) { |
| 13 | 13 | $dueAmount = max(((int)$order->total_amount - (int)$order->total_paid), 0); |
| 14 | 14 | } |