Skip to content

Firefly III: a personal finances manager

Fix date fields

James Cole4d10ae91b7d1
diff --git a/resources/views/emails/bill-warning.blade.php b/resources/views/emails/bill-warning.blade.php
index 1b3704bb30..e7bd064137 100644
--- a/resources/views/emails/bill-warning.blade.php
+++ b/resources/views/emails/bill-warning.blade.php
@@ -4,7 +4,7 @@
@endif
@if($field === 'extension_date' && $diff !== 0)
-{{ trans('email.bill_warning_extension_date', ['name' => $bill->name, 'date' => $bill->end_date->isoFormat(trans('config.month_and_day_js')), 'diff' => $diff]) }}
+{{ trans('email.bill_warning_extension_date', ['name' => $bill->name, 'date' => $bill->extension_date->isoFormat(trans('config.month_and_day_js')), 'diff' => $diff]) }}
@endif
@if($field === 'end_date' && $diff === 0)
@@ -12,7 +12,7 @@
@endif
@if($field === 'extension_date' && $diff === 0)
-{{ trans('email.bill_warning_extension_date_zero', ['name' => $bill->name, 'date' => $bill->end_date->isoFormat(trans('config.month_and_day_js')) ]) }}
+{{ trans('email.bill_warning_extension_date_zero', ['name' => $bill->name, 'date' => $bill->extension_date->isoFormat(trans('config.month_and_day_js')) ]) }}
@endif
{{ trans('email.bill_warning_please_action') }}