← All changes
|
app/Views/emails/subscription/charge_failed/customer.php
+1
-1
1.6.3
→
1.7.1
View file →
| @@ -8,9 +8,9 @@ | ||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | $paymentMethodText = $subscription->getPaymentMethodText(); |
| 11 | 11 | $nextRetryAt = isset($next_retry_at) ? $next_retry_at : null; |
| 12 | -$formattedRetryDate = $nextRetryAt ? date_i18n(get_option('date_format'), strtotime($nextRetryAt)) : ''; | |
| 12 | +$formattedRetryDate = \FluentCart\App\Services\DateTime\DateFormatter::format($nextRetryAt, false, $order); | |
| 13 | 13 | // getCustomerDashboardUrl() returns a broken relative path ("/subscription/{uuid}") |
| 14 | 14 | // when no customer profile page is configured — only render the CTA when the |
| 15 | 15 | // dashboard base actually exists. |
| 16 | 16 | $updateMethodUrl = (new \FluentCart\Api\StoreSettings())->getCustomerProfilePage() |