Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Replace deprecated function.
James Cole2be7813a67fc
diff --git a/app/Http/Middleware/Range.php b/app/Http/Middleware/Range.phpindex 4a64f3989d..1d590443b2 100644--- a/app/Http/Middleware/Range.php+++ b/app/Http/Middleware/Range.php@@ -113,8 +113,8 @@ class Range}// save some formats:- $monthAndDayFormat = (string)trans('config.month_and_day', [], $locale);- $dateTimeFormat = (string)trans('config.date_time', [], $locale);+ $monthAndDayFormat = (string)trans('config.month_and_day_js', [], $locale);+ $dateTimeFormat = (string)trans('config.date_time_js', [], $locale);$defaultCurrency = app('amount')->getDefaultCurrency();// also format for moment JS:diff --git a/resources/lang/en_US/config.php b/resources/lang/en_US/config.phpindex 35df8fbdc5..b097328550 100644--- a/resources/lang/en_US/config.php+++ b/resources/lang/en_US/config.php@@ -34,6 +34,7 @@ return ['month_and_day_js' => 'MMMM Do, YYYY',//'month_and_date_day' => '%A %B %e, %Y',+ 'month_and_date_day_js' => 'dddd MMMM Do, YYYY',//'month_and_day_no_year' => '%B %e','month_and_day_no_year_js' => 'MMMM Do',diff --git a/resources/views/accounts/reconcile/edit.twig b/resources/views/accounts/reconcile/edit.twigindex 852cf47d6b..9eb2e06b99 100644--- a/resources/views/accounts/reconcile/edit.twig+++ b/resources/views/accounts/reconcile/edit.twig@@ -39,7 +39,7 @@{{ ExpandedForm.nonSelectableAmount('amount',data.amount, {'currency' : data.currency}) }}{# ALWAYS SHOW DATE #}- {{ ExpandedForm.staticText('date',journal.date.formatLocalized(monthAndDayFormat)) }}+ {{ ExpandedForm.staticText('date',journal.date.isoFormat(monthAndDayFormat)) }}</div></div>diff --git a/resources/views/accounts/reconcile/overview.twig b/resources/views/accounts/reconcile/overview.twigindex 7116cf6ed4..914a897bf6 100644--- a/resources/views/accounts/reconcile/overview.twig+++ b/resources/views/accounts/reconcile/overview.twig@@ -21,7 +21,7 @@<table class="table table-striped table-bordered"><tr>- <td>{{ 'submitted_start_balance'|_ }} ({{ start.formatLocalized(monthAndDayFormat) }})</td>+ <td>{{ 'submitted_start_balance'|_ }} ({{ start.isoFormat(monthAndDayFormat) }})</td><td>{{ formatAmountByAccount(account, startBalance) }}</td></tr><tr>@@ -33,7 +33,7 @@<td>{{ formatAmountByAccount(account, clearedAmount) }}</td></tr><tr>- <td>{{ 'submitted_end_balance'|_ }} ({{ end.formatLocalized(monthAndDayFormat) }})</td>+ <td>{{ 'submitted_end_balance'|_ }} ({{ end.isoFormat(monthAndDayFormat) }})</td><td>{{ formatAmountByAccount(account, endBalance) }}</td></tr><tr>diff --git a/resources/views/accounts/reconcile/show.twig b/resources/views/accounts/reconcile/show.twigindex 92e4b6e535..dd503dec9c 100644--- a/resources/views/accounts/reconcile/show.twig+++ b/resources/views/accounts/reconcile/show.twig@@ -44,7 +44,7 @@</tr><tr><td style="width:30%;">{{ trans('list.date') }}</td>- <td>{{ journal.date.formatLocalized(monthAndDayFormat) }}</td>+ <td>{{ journal.date.isoFormat(monthAndDayFormat) }}</td></tr></tbody></table>diff --git a/resources/views/accounts/reconcile/transactions.twig b/resources/views/accounts/reconcile/transactions.twigindex 0b3389205e..891e988d8c 100644--- a/resources/views/accounts/reconcile/transactions.twig+++ b/resources/views/accounts/reconcile/transactions.twig@@ -28,7 +28,7 @@</td><td colspan="3"><span class="label label-default">- {{ trans('firefly.start_of_reconcile_period', {period: start.formatLocalized(monthAndDayFormat) }) }}+ {{ trans('firefly.start_of_reconcile_period', {period: start.isoFormat(monthAndDayFormat) }) }}</span></td><td colspan="2">@@ -49,7 +49,7 @@</td><td colspan="3"><span class="label label-default">- {{ trans('firefly.end_of_reconcile_period', {period: end.formatLocalized(monthAndDayFormat) }) }}+ {{ trans('firefly.end_of_reconcile_period', {period: end.isoFormat(monthAndDayFormat) }) }}</span></td><td colspan="2">@@ -133,7 +133,7 @@</td><td class="hidden-sm hidden-xs">- {{ journal.date.formatLocalized(monthAndDayFormat) }}+ {{ journal.date.isoFormat(monthAndDayFormat) }}</td><td class="hidden-xs hidden-sm hidden-md">@@ -163,7 +163,7 @@</td><td colspan="3"><span class="label label-default">- {{ trans('firefly.start_of_reconcile_period', {period: start.formatLocalized(monthAndDayFormat) }) }}+ {{ trans('firefly.start_of_reconcile_period', {period: start.isoFormat(monthAndDayFormat) }) }}</span></td><td colspan="2">diff --git a/resources/views/accounts/show.twig b/resources/views/accounts/show.twigindex b6d45b3a14..6eb878e1a8 100644--- a/resources/views/accounts/show.twig+++ b/resources/views/accounts/show.twig@@ -13,7 +13,7 @@<h3 class="box-title">{{ trans('firefly.chart_account_in_period', {balance: formatAmountBySymbol(balance, currency.symbol, currency.decimal_places, true),- name: account.name|escape, start: start.formatLocalized(monthAndDayFormat), end: end.formatLocalized(monthAndDayFormat) })|raw }}+ name: account.name|escape, start: start.isoFormat(monthAndDayFormat), end: end.isoFormat(monthAndDayFormat) })|raw }}</h3><div class="box-tools pull-right"><div class="btn-group">@@ -193,7 +193,7 @@var drawVerticalLine = '';{# render vertical line with text "today" #}{% if start.lte(today) and end.gte(today) %}- drawVerticalLine = '{{ today.formatLocalized(monthAndDayFormat) }}';+ drawVerticalLine = '{{ today.isoFormat(monthAndDayFormat) }}';{% endif %}{% endif %}diff --git a/resources/views/admin/users/index.twig b/resources/views/admin/users/index.twigindex d8c8129119..426fba58d5 100644--- a/resources/views/admin/users/index.twig+++ b/resources/views/admin/users/index.twig@@ -37,11 +37,11 @@<td data-value="{{ user.email }}"><a href="{{ route('admin.users.show',user.id) }}">{{ user.email }}</a></td><td class="hidden-xs" data-value="{{ user.created_at.format('Y-m-d H-i-s') }}">- {{ user.created_at.formatLocalized(monthAndDayFormat) }}+ {{ user.created_at.isoFormat(monthAndDayFormat) }}{{ user.created_at.format('H:i') }}</td><td class="hidden-xs" data-value="{{ user.updated_at.format('Y-m-d H-i-s') }}">- {{ user.updated_at.formatLocalized(monthAndDayFormat) }}+ {{ user.updated_at.isoFormat(monthAndDayFormat) }}{{ user.updated_at.format('H:i') }}</td><td class="hidden-xs" data-value="{% if user.isAdmin %}1{% else %}0{% endif %}">diff --git a/resources/views/admin/users/show.twig b/resources/views/admin/users/show.twigindex 7945607bd5..04aef4cd7e 100644--- a/resources/views/admin/users/show.twig+++ b/resources/views/admin/users/show.twig@@ -25,7 +25,7 @@<tr><td>{{ trans('list.created_at') }}</td><td>- {{ user.created_at.formatLocalized(monthAndDayFormat) }}+ {{ user.created_at.isoFormat(monthAndDayFormat) }}{{ user.created_at.format('H:i') }}</td></tr><tr>diff --git a/resources/views/budgets/available-budgets/create-alternative.twig b/resources/views/budgets/available-budgets/create-alternative.twigindex d212385217..126dbb4713 100644--- a/resources/views/budgets/available-budgets/create-alternative.twig+++ b/resources/views/budgets/available-budgets/create-alternative.twig@@ -5,7 +5,7 @@</button><h4 class="modal-title">{{ trans('firefly.update_budget_amount_range',- {start: start.formatLocalized(monthAndDayFormat), end: end.formatLocalized(monthAndDayFormat)}) }}+ {start: start.isoFormat(monthAndDayFormat), end: end.isoFormat(monthAndDayFormat)}) }}</h4></div>diff --git a/resources/views/budgets/available-budgets/create.twig b/resources/views/budgets/available-budgets/create.twigindex 9a77295ea4..a26a0933e5 100644--- a/resources/views/budgets/available-budgets/create.twig+++ b/resources/views/budgets/available-budgets/create.twig@@ -5,7 +5,7 @@</button><h4 class="modal-title">{{ trans('firefly.update_budget_amount_range',- {start: start.formatLocalized(monthAndDayFormat), end: end.formatLocalized(monthAndDayFormat)}) }}+ {start: start.isoFormat(monthAndDayFormat), end: end.isoFormat(monthAndDayFormat)}) }}</h4></div>diff --git a/resources/views/budgets/available-budgets/edit.twig b/resources/views/budgets/available-budgets/edit.twigindex bdb04fc34b..aeec8fdc1d 100644--- a/resources/views/budgets/available-budgets/edit.twig+++ b/resources/views/budgets/available-budgets/edit.twig@@ -5,7 +5,7 @@</button><h4 class="modal-title">{{ trans('firefly.update_budget_amount_range',- {start: availableBudget.start_date.formatLocalized(monthAndDayFormat), end: availableBudget.end_date.formatLocalized(monthAndDayFormat)}) }}+ {start: availableBudget.start_date.isoFormat(monthAndDayFormat), end: availableBudget.end_date.isoFormat(monthAndDayFormat)}) }}</h4></div>diff --git a/resources/views/budgets/budget-limits/create.twig b/resources/views/budgets/budget-limits/create.twigindex be92a9849b..ce0c05d06a 100644--- a/resources/views/budgets/budget-limits/create.twig+++ b/resources/views/budgets/budget-limits/create.twig@@ -5,7 +5,7 @@</button><h4 class="modal-title">{{ trans('firefly.set_budget_limit_title',- {start: start.formatLocalized(monthAndDayFormat), end: end.formatLocalized(monthAndDayFormat), budget: budget.name}) }}+ {start: start.isoFormat(monthAndDayFormat), end: end.isoFormat(monthAndDayFormat), budget: budget.name}) }}</h4></div>diff --git a/resources/views/budgets/index.twig b/resources/views/budgets/index.twigindex ebd3de9690..3494c525b1 100644--- a/resources/views/budgets/index.twig+++ b/resources/views/budgets/index.twig@@ -27,7 +27,7 @@<div class="btn btn-group btn-group-lg" style="padding-top:0;"><a href="{{ route('budgets.index', [prevLoop[0].start.format('Y-m-d'), prevLoop[0].end.format('Y-m-d')]) }}"class="btn btn-default" title="{{ prevLoop[0].title }}">←</a>- <a title="{{ start.formatLocalized(monthAndDayFormat) }} - {{ end.formatLocalized(monthAndDayFormat) }}"+ <a title="{{ start.isoFormat(monthAndDayFormat) }} - {{ end.isoFormat(monthAndDayFormat) }}"href="{{ route('budgets.index', [start.format('Y-m-d'), end.format('Y-m-d')]) }}"class="btn btn-default">{{ periodTitle }}</a><a href="{{ route('budgets.index', [nextLoop[0].start.format('Y-m-d'), nextLoop[0].end.format('Y-m-d')]) }}"@@ -57,7 +57,7 @@<h3 class="box-title">{{ trans('firefly.total_available_budget_in_currency', {currency: defaultCurrency.name}) }}<br>- <small>{{ trans('firefly.between_dates_breadcrumb', {start: start.formatLocalized(monthAndDayFormat), end: end.formatLocalized(monthAndDayFormat)}) }}</small>+ <small>{{ trans('firefly.between_dates_breadcrumb', {start: start.isoFormat(monthAndDayFormat), end: end.isoFormat(monthAndDayFormat)}) }}</small></h3></div><div class="box-body">@@ -73,7 +73,7 @@{# info about the amount spent #}<div class="col-lg-9 col-md-9 col-sm-9 col-xs-9" style="text-align:right;margin-bottom:3px;"><small class="available_bar"- data-id="0">{{ trans('firefly.available_between', {start: start.formatLocalized(monthAndDayFormat), end: end.formatLocalized(monthAndDayFormat) }) }}+ data-id="0">{{ trans('firefly.available_between', {start: start.isoFormat(monthAndDayFormat), end: end.isoFormat(monthAndDayFormat) }) }}:<span class="available_amount" data-id="0" data-value="0" data-currency="{{ defaultCurrency.id }}"data-value="0">{{ formatAmountBySymbol(0, defaultCurrency.symbol, defaultCurrency.decimal_places, true) }}</span>@@ -84,7 +84,7 @@{# info text to show how much is spent (in currency). #}<div class="row spentInfo" data-id="0" data-value="{{ spent }}"><div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">- <small>{{ trans('firefly.spent_between', {start: start.formatLocalized(monthAndDayFormat), end: end.formatLocalized(monthAndDayFormat)}) }}+ <small>{{ trans('firefly.spent_between', {start: start.isoFormat(monthAndDayFormat), end: end.isoFormat(monthAndDayFormat)}) }}: {{ formatAmountBySymbol(spent, defaultCurrency.symbol, defaultCurrency.decimal_places) }} </small></div></div>@@ -116,7 +116,7 @@<h3 class="box-title">{{ trans('firefly.total_available_budget_in_currency', {currency: budget.transaction_currency.name}) }}<br>- <small>{{ trans('firefly.between_dates_breadcrumb', {start: budget.start_date.formatLocalized(monthAndDayFormat), end: budget.end_date.formatLocalized(monthAndDayFormat)}) }}</small>+ <small>{{ trans('firefly.between_dates_breadcrumb', {start: budget.start_date.isoFormat(monthAndDayFormat), end: budget.end_date.isoFormat(monthAndDayFormat)}) }}</small></h3></div><div class="box-body">@@ -132,7 +132,7 @@{# info about the amount spent #}<div class="col-lg-9 col-md-9 col-sm-9 col-xs-9" style="text-align:right;margin-bottom:3px;"><small class="available_bar"- data-id="{{ budget.id }}">{{ trans('firefly.available_between', {start: budget.start_date.formatLocalized(monthAndDayFormat), end: budget.end_date.formatLocalized(monthAndDayFormat) }) }}+ data-id="{{ budget.id }}">{{ trans('firefly.available_between', {start: budget.start_date.isoFormat(monthAndDayFormat), end: budget.end_date.isoFormat(monthAndDayFormat) }) }}:<span class="available_amount" data-id="{{ budget.id }}"data-value="{{ budget.amount }}">{{ formatAmountBySymbol(budget.amount, budget.transaction_currency.symbol, budget.transaction_currency.decimal_places, true) }}</span>@@ -166,7 +166,7 @@{# info text to show how much is spent (in currency). #}<div class="row spentInfo" data-id="{{ budget.id }}"><div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">- <small>{{ trans('firefly.spent_between', {start: budget.start_date.formatLocalized(monthAndDayFormat), end: budget.end_date.formatLocalized(monthAndDayFormat)}) }}+ <small>{{ trans('firefly.spent_between', {start: budget.start_date.isoFormat(monthAndDayFormat), end: budget.end_date.isoFormat(monthAndDayFormat)}) }}: {{ formatAmountBySymbol(budget.spent, budget.transaction_currency.symbol, budget.transaction_currency.decimal_places) }} </small></div></div>@@ -408,7 +408,7 @@<div class="box-body"><p><a href="{{ route('budgets.no-budget', [start.format('Y-m-d'), end.format('Y-m-d')]) }}">- {{ trans('firefly.transactions_no_budget', {start: start.formatLocalized(monthAndDayFormat), end: end.formatLocalized(monthAndDayFormat)}) }}+ {{ trans('firefly.transactions_no_budget', {start: start.isoFormat(monthAndDayFormat), end: end.isoFormat(monthAndDayFormat)}) }}</a></p></div>diff --git a/resources/views/budgets/show.twig b/resources/views/budgets/show.twigindex 5f501882f7..059b10de74 100644--- a/resources/views/budgets/show.twig+++ b/resources/views/budgets/show.twig@@ -11,7 +11,7 @@<div class="box-header with-border"><h3 class="box-title">{% if budgetLimit %}- {{ trans('firefly.chart_budget_in_period', {name: budget.name, start: budgetLimit.start_date.formatLocalized(monthAndDayFormat), end: budgetLimit.end_date.formatLocalized(monthAndDayFormat),currency: budgetLimit.transactionCurrency.name }) }}+ {{ trans('firefly.chart_budget_in_period', {name: budget.name, start: budgetLimit.start_date.isoFormat(monthAndDayFormat), end: budgetLimit.end_date.isoFormat(monthAndDayFormat),currency: budgetLimit.transactionCurrency.name }) }}{% else %}{{ trans('firefly.chart_all_journals_for_budget', {name:budget.name}) }}{% endif %}@@ -147,8 +147,8 @@<div class="box-header with-border"><h3 class="box-title"><ahref="{{ route('budgets.show.limit',[budget.id,limit.id]) }}">- {{ limit.start_date.formatLocalized(monthAndDayFormat) }} —- {{ limit.end_date.formatLocalized(monthAndDayFormat) }}+ {{ limit.start_date.isoFormat(monthAndDayFormat) }} —+ {{ limit.end_date.isoFormat(monthAndDayFormat) }}</a></h3></div>diff --git a/resources/views/categories/show.twig b/resources/views/categories/show.twigindex cb9786cd55..923f307a51 100644--- a/resources/views/categories/show.twig+++ b/resources/views/categories/show.twig@@ -12,7 +12,7 @@<div class="box"><div class="box-header with-border"><h3 class="box-title">- {{ trans('firefly.chart_category_in_period', {name: category.name, start: start.formatLocalized(monthAndDayFormat), end: end.formatLocalized(monthAndDayFormat) }) }}+ {{ trans('firefly.chart_category_in_period', {name: category.name, start: start.isoFormat(monthAndDayFormat), end: end.isoFormat(monthAndDayFormat) }) }}</h3></div><div class="box-body">diff --git a/resources/views/index.twig b/resources/views/index.twigindex 7f8d544df3..5d7b5c9bea 100644--- a/resources/views/index.twig+++ b/resources/views/index.twig@@ -177,7 +177,7 @@var drawVerticalLine = '';{# render vertical line with text "today" #}{% if start.lte(today) and end.gte(today) %}- drawVerticalLine = '{{ today.formatLocalized(monthAndDayFormat) }}';+ drawVerticalLine = '{{ today.isoFormat(monthAndDayFormat) }}';{% endif %}</script>diff --git a/resources/views/list/accounts.twig b/resources/views/list/accounts.twigindex c470d93b5a..4108e9625a 100644--- a/resources/views/list/accounts.twig+++ b/resources/views/list/accounts.twig@@ -85,7 +85,7 @@{% if account.lastActivityDate %}<td class="hidden-sm hidden-xs hidden-md"><!-- {{ account.lastActivityDate }} -->- {{ account.lastActivityDate.formatLocalized(monthAndDayFormat) }}+ {{ account.lastActivityDate.isoFormat(monthAndDayFormat) }}</td>{% else %}<td class="hidden-sm hidden-xs hidden-md">diff --git a/resources/views/list/categories.twig b/resources/views/list/categories.twigindex 7438f4311e..81686e662d 100644--- a/resources/views/list/categories.twig+++ b/resources/views/list/categories.twig@@ -31,7 +31,7 @@</td>{% if category.lastActivity %}<td class="hidden-sm hidden-xs" data-value="{{ category.lastActivity.format('Y-m-d H-i-s') }}">- {{ category.lastActivity.formatLocalized(monthAndDayFormat) }}+ {{ category.lastActivity.isoFormat(monthAndDayFormat) }}</td>{% else %}<td class="hidden-sm hidden-xs" data-value="0000-00-00 00-00-00">diff --git a/resources/views/list/groups.twig b/resources/views/list/groups.twigindex 4548c33a3c..3be6a895b9 100644--- a/resources/views/list/groups.twig+++ b/resources/views/list/groups.twig@@ -204,7 +204,7 @@{% endif %}</td><td style=" {{ style|raw }}" class="hidden-xs">- {{ transaction.date.formatLocalized(monthAndDayFormat) }}+ {{ transaction.date.isoFormat(monthAndDayFormat) }}</td><td style=" {{ style|raw }}">{% if 'Cash account' == transaction.source_account_type %}diff --git a/resources/views/list/piggy-bank-events.twig b/resources/views/list/piggy-bank-events.twigindex 26765de16d..e89391c1b9 100644--- a/resources/views/list/piggy-bank-events.twig+++ b/resources/views/list/piggy-bank-events.twig@@ -16,9 +16,9 @@<td>{% if event.transaction_journal_id %}<a href="{{ route('transactions.show',event.transactionJournal.transaction_group_id) }}"- title="{{ event.transactionJournal.description }}">{{ event.date.formatLocalized(monthAndDayFormat) }}</a>+ title="{{ event.transactionJournal.description }}">{{ event.date.isoFormat(monthAndDayFormat) }}</a>{% else %}- {{ event.date.formatLocalized(monthAndDayFormat) }}+ {{ event.date.isoFormat(monthAndDayFormat) }}{% endif %}</td>diff --git a/resources/views/piggy-banks/show.twig b/resources/views/piggy-banks/show.twigindex d4dfbbe2a1..1615c4fafc 100644--- a/resources/views/piggy-banks/show.twig+++ b/resources/views/piggy-banks/show.twig@@ -68,7 +68,7 @@<td>{{ 'start_date'|_ }}</td><td>{% if piggyBank.startdate %}- {{ piggyBank.startdate.formatLocalized(monthAndDayFormat) }}+ {{ piggyBank.startdate.isoFormat(monthAndDayFormat) }}{% else %}<em>{{ 'no_start_date'|_ }}</em>{% endif %}@@ -78,7 +78,7 @@<td>{{ 'target_date'|_ }}</td><td>{% if piggyBank.targetdate %}- {{ piggyBank.targetdate.formatLocalized(monthAndDayFormat) }}+ {{ piggyBank.targetdate.isoFormat(monthAndDayFormat) }}{% else %}<em>{{ 'no_target_date'|_ }}</em>{% endif %}diff --git a/resources/views/popup/list/journals.twig b/resources/views/popup/list/journals.twigindex 90ff182770..3ebbea0ff1 100644--- a/resources/views/popup/list/journals.twig+++ b/resources/views/popup/list/journals.twig@@ -95,7 +95,7 @@</td><td class="hidden-sm hidden-xs">- {{ transaction.date.formatLocalized(monthAndDayFormat) }}+ {{ transaction.date.isoFormat(monthAndDayFormat) }}</td>{% if not hideSource %}diff --git a/resources/views/popup/report/balance-amount.twig b/resources/views/popup/report/balance-amount.twigindex c0d779ae57..b27f9240c7 100644--- a/resources/views/popup/report/balance-amount.twig+++ b/resources/views/popup/report/balance-amount.twig@@ -3,7 +3,7 @@<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="{{ 'close'|_ }}"><span>×</span></button><h4 class="modal-title" id="balanceAmountTitle">{{ trans('firefly.balance_amount',- {budget: budget.name, account: account.name, start: start.formatLocalized(monthAndDayFormat), end: end.formatLocalized(monthAndDayFormat)}+ {budget: budget.name, account: account.name, start: start.isoFormat(monthAndDayFormat), end: end.isoFormat(monthAndDayFormat)}) }}</h4></div><div class="modal-body">diff --git a/resources/views/popup/report/budget-spent-amount.twig b/resources/views/popup/report/budget-spent-amount.twigindex ca6fc60058..c06c6df4eb 100644--- a/resources/views/popup/report/budget-spent-amount.twig+++ b/resources/views/popup/report/budget-spent-amount.twig@@ -3,7 +3,7 @@<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="{{ 'close'|_ }}"><span>×</span></button><h4 class="modal-title" id="budgetSpentAmountLabel">- {{ trans('firefly.budget_spent_amount', {start: start.formatLocalized(monthAndDayFormat), end: end.formatLocalized(monthAndDayFormat), budget: budget.name}) }}+ {{ trans('firefly.budget_spent_amount', {start: start.isoFormat(monthAndDayFormat), end: end.isoFormat(monthAndDayFormat), budget: budget.name}) }}</h4></div><div class="modal-body">diff --git a/resources/views/popup/report/category-entry.twig b/resources/views/popup/report/category-entry.twigindex ac2b1059a7..25b0b4a70c 100644--- a/resources/views/popup/report/category-entry.twig+++ b/resources/views/popup/report/category-entry.twig@@ -3,7 +3,7 @@<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="{{ 'close'|_ }}"><span>×</span></button><h4 class="modal-title"- id="expenseEntryTitle">{{ trans('firefly.category_entry', {name: category.name, start: start.formatLocalized(monthAndDayFormat), end: end.formatLocalized(monthAndDayFormat)}) }}</h4>+ id="expenseEntryTitle">{{ trans('firefly.category_entry', {name: category.name, start: start.isoFormat(monthAndDayFormat), end: end.isoFormat(monthAndDayFormat)}) }}</h4></div><div class="modal-body">{% set hideCategory = true %}diff --git a/resources/views/popup/report/expense-entry.twig b/resources/views/popup/report/expense-entry.twigindex e6d27a5a77..dbc7c7b029 100644--- a/resources/views/popup/report/expense-entry.twig+++ b/resources/views/popup/report/expense-entry.twig@@ -3,7 +3,7 @@<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="{{ 'close'|_ }}"><span>×</span></button><h4 class="modal-title"- id="expenseEntryTitle">{{ trans('firefly.expense_entry', {name: account.name, start: start.formatLocalized(monthAndDayFormat), end: end.formatLocalized(monthAndDayFormat)}) }}</h4>+ id="expenseEntryTitle">{{ trans('firefly.expense_entry', {name: account.name, start: start.isoFormat(monthAndDayFormat), end: end.isoFormat(monthAndDayFormat)}) }}</h4></div><div class="modal-body">{% set hideDestination = true %}diff --git a/resources/views/popup/report/income-entry.twig b/resources/views/popup/report/income-entry.twigindex 6f6d5c7d26..c49306440c 100644--- a/resources/views/popup/report/income-entry.twig+++ b/resources/views/popup/report/income-entry.twig@@ -3,7 +3,7 @@<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="{{ 'close'|_ }}"><span>×</span></button><h4 class="modal-title"- id="incomeEntryTitle">{{ trans('firefly.income_entry', {name: account.name, start: start.formatLocalized(monthAndDayFormat), end: end.formatLocalized(monthAndDayFormat)}) }}</h4>+ id="incomeEntryTitle">{{ trans('firefly.income_entry', {name: account.name, start: start.isoFormat(monthAndDayFormat), end: end.isoFormat(monthAndDayFormat)}) }}</h4></div><div class="modal-body">{% set hideBudget = true %}diff --git a/resources/views/recurring/index.twig b/resources/views/recurring/index.twigindex 4ed51ada5f..437ad9dc10 100644--- a/resources/views/recurring/index.twig+++ b/resources/views/recurring/index.twig@@ -90,7 +90,7 @@<td>{% if null != rt.repeat_until and today > rt.repeat_until %}<span class="text-danger">- {{ trans('firefly.repeat_until_in_past', {date: rt.repeat_until.formatLocalized(monthAndDayFormat) }) }}+ {{ trans('firefly.repeat_until_in_past', {date: rt.repeat_until.isoFormat(monthAndDayFormat) }) }}</span>{% endif %}<ul>@@ -119,7 +119,7 @@{{ 'recurring_repeats_forever'|_ }}.{% endif %}{% if null != rt.repeat_until and rt.repetitions == 0 %}- {{ trans('firefly.recurring_repeats_until', {date: rt.repeat_until.formatLocalized(monthAndDayFormat)}) }}.+ {{ trans('firefly.recurring_repeats_until', {date: rt.repeat_until.isoFormat(monthAndDayFormat)}) }}.{% endif %}{% if null == rt.repeat_until and rt.nr_of_repetitions != 0 %}{{ trans_choice('firefly.recurring_repeats_x_times', rt.nr_of_repetitions) }}.@@ -131,7 +131,7 @@{% for rep in rt.repetitions %}{% for occ in rep.occurrences %}{% if loop.index0 < 2 %}- <li>{{ occ.formatLocalized(monthAndDayFormat) }}</li>+ <li>{{ occ.isoFormat(monthAndDayFormat) }}</li>{% endif %}{% endfor %}{% endfor %}diff --git a/resources/views/recurring/show.twig b/resources/views/recurring/show.twigindex 28e0b7bd17..09f1a4260f 100644--- a/resources/views/recurring/show.twig+++ b/resources/views/recurring/show.twig@@ -54,7 +54,7 @@<div class="box-body">{% if null != array.repeat_until and today > array.repeat_until %}<span class="text-danger">- {{ trans('firefly.repeat_until_in_past', {date: array.repeat_until.formatLocalized(monthAndDayFormat) }) }}+ {{ trans('firefly.repeat_until_in_past', {date: array.repeat_until.isoFormat(monthAndDayFormat) }) }}</span>{% endif %}<ul>@@ -69,7 +69,7 @@{% endif %}<ul>{% for occ in rep.occurrences %}- <li>{{ occ.formatLocalized(trans('config.month_and_date_day')) }}</li>+ <li>{{ occ.isoFormat(trans('config.month_and_date_day_js')) }}</li>{% endfor %}</ul></li>diff --git a/resources/views/reports/audit/report.twig b/resources/views/reports/audit/report.twigindex c455d9a731..dfd2ee2ede 100644--- a/resources/views/reports/audit/report.twig+++ b/resources/views/reports/audit/report.twig@@ -44,8 +44,8 @@{account_name: account.name|escape,url: url,- start: start.formatLocalized(monthAndDayFormat),- end: end.formatLocalized(monthAndDayFormat),+ start: start.isoFormat(monthAndDayFormat),+ end: end.isoFormat(monthAndDayFormat),})|raw }}</em>diff --git a/resources/views/reports/partials/bills.twig b/resources/views/reports/partials/bills.twigindex 19722deb21..4387d3df02 100644--- a/resources/views/reports/partials/bills.twig+++ b/resources/views/reports/partials/bills.twig@@ -23,7 +23,7 @@</td><td data-value="{{ bill.expected_dates[0].format('Y-m-d')|default('0000-00-00') }}">{% for date in bill.expected_dates %}- {{ date.formatLocalized(monthAndDayFormat) }}<br/>+ {{ date.isoFormat(monthAndDayFormat) }}<br/>{% endfor %}</td><td style="text-align:right;">@@ -31,7 +31,7 @@{% for journals in bill.paid_moments %}{% for journal in journals %}{% set hitCount = hitCount+1 %}- <a title="{{ journal.date.formatLocalized(monthAndDayFormat) }}"+ <a title="{{ journal.date.isoFormat(monthAndDayFormat) }}"href="{{ route('transactions.show', [journal.transaction_group_id]) }}">{{ journal.description }}</a>,{{ formatAmountBySymbol(journal.amount, journal.currency_symbol, journal.currency_decimal_places) }}<br/>@@ -51,7 +51,7 @@<td data-value="{{ line.getBill.name }}"><a href="{{ route('bills.show',line.getBill.id) }}">{{ line.getBill.name }}</a><small class="text-muted"><br/>- {{ trans('firefly.bill_expected_between', {start: line.getPayDate.formatLocalized(monthAndDayFormat), end: line.getEndOfPayDate.formatLocalized(monthAndDayFormat) }) }}+ {{ trans('firefly.bill_expected_between', {start: line.getPayDate.isoFormat(monthAndDayFormat), end: line.getEndOfPayDate.isoFormat(monthAndDayFormat) }) }}</small></td><td class="hidden-xs" data-value="{{ line.getMin }}" style="text-align: right;">{{ formatAmountByCurrency(line.getCurrency, line.getMin) }}</td>diff --git a/resources/views/reports/partials/budgets.twig b/resources/views/reports/partials/budgets.twigindex 56b80cc5b5..0c362e2aab 100644--- a/resources/views/reports/partials/budgets.twig+++ b/resources/views/reports/partials/budgets.twig@@ -29,9 +29,9 @@<td class="hidden-xs" data-value="{{ budget_limit.start_date.format('Y-m-d')|default('0000-00-00') }}">{% if null != budget_limit.budget_limit_id %}<a href="{{ route('budgets.show.limit', [budget.budget_id, budget_limit.budget_limit_id]) }}">- {{ budget_limit.start_date.formatLocalized(monthAndDayFormat) }}+ {{ budget_limit.start_date.isoFormat(monthAndDayFormat) }}—- {{ budget_limit.end_date.formatLocalized(monthAndDayFormat) }}+ {{ budget_limit.end_date.isoFormat(monthAndDayFormat) }}</a>{% endif %}</td>diff --git a/resources/views/reports/partials/journals-audit.twig b/resources/views/reports/partials/journals-audit.twigindex d88485ebb5..653adcfd7d 100644--- a/resources/views/reports/partials/journals-audit.twig+++ b/resources/views/reports/partials/journals-audit.twig@@ -111,7 +111,7 @@{{ formatAmountBySymbol(journal.balance_after, auditData[account.id].currency.symbol, auditData[account.id].currency.decimal_places) }}</td>- <td class="hide-date">{{ journal.date.formatLocalized(monthAndDayFormat) }}</td>+ <td class="hide-date">{{ journal.date.isoFormat(monthAndDayFormat) }}</td><td class="hide-from"><a href="{{ route('accounts.show', [journal.source_account_id]) }}" title="{{ journal.source_account_iban|default(journal.source_account_name) }}">{{ journal.source_account_name }}</a>@@ -138,42 +138,42 @@<!-- new optional fields (2x) --><td class="hide-create_date">- {{ journal.created_at.formatLocalized(dateTimeFormat) }}+ {{ journal.created_at.isoFormat(dateTimeFormat) }}</td><td class="hide-update_date">- {{ journal.updated_at.formatLocalized(dateTimeFormat) }}+ {{ journal.updated_at.isoFormat(dateTimeFormat) }}</td><!-- more new dates --><td class="hide-interest_date">{% if null != journal.interest_date %}- {{ journal.interest_date.formatLocalized(monthAndDayFormat) }}+ {{ journal.interest_date.isoFormat(monthAndDayFormat) }}{% endif %}</td><td class="hide-book_date">{% if null != journal.book_date %}- {{ journal.book_date.formatLocalized(monthAndDayFormat) }}+ {{ journal.book_date.isoFormat(monthAndDayFormat) }}{% endif %}</td><td class="hide-process_date">{% if null != journal.process_date %}- {{ journal.process_date.formatLocalized(monthAndDayFormat) }}+ {{ journal.process_date.isoFormat(monthAndDayFormat) }}{% endif %}</td><td class="hide-due_date">{% if null != journal.due_date %}- {{ journal.due_date.formatLocalized(monthAndDayFormat) }}+ {{ journal.due_date.isoFormat(monthAndDayFormat) }}{% endif %}</td><td class="hide-payment_date">{% if null != journal.payment_date %}- {{ journal.payment_date.formatLocalized(monthAndDayFormat) }}+ {{ journal.payment_date.isoFormat(monthAndDayFormat) }}{% endif %}</td><td class="hide-invoice_date">{% if null != journal.invoice_date %}- {{ journal.invoice_date.formatLocalized(monthAndDayFormat) }}+ {{ journal.invoice_date.isoFormat(monthAndDayFormat) }}{% endif %}</td></tr>diff --git a/resources/views/reports/partials/top-transactions.twig b/resources/views/reports/partials/top-transactions.twigindex 9fcd16a9cd..30c62242a7 100644--- a/resources/views/reports/partials/top-transactions.twig+++ b/resources/views/reports/partials/top-transactions.twig@@ -15,7 +15,7 @@</td><td data-value="{{ transaction.description }}">{{ transaction.description }}</td><td data-value="{{ transaction.date.format('Y-m-d') }}">- {{ transaction.date.formatLocalized(monthAndDayFormat) }}+ {{ transaction.date.isoFormat(monthAndDayFormat) }}</td><!-- See reference nr. 3 --><td style="text-align: right;" data-value="{{ transaction.amount}}"><spanstyle="margin-right:5px;">diff --git a/resources/views/tags/index.twig b/resources/views/tags/index.twigindex 18d1c4cf62..ea453360bc 100644--- a/resources/views/tags/index.twig+++ b/resources/views/tags/index.twig@@ -36,7 +36,7 @@class="label label-success"style="font-weight: normal;font-size:0.9em;"- title="{{ tagInfo.created_at.formatLocalized(monthAndDayFormat) }}"+ title="{{ tagInfo.created_at.isoFormat(monthAndDayFormat) }}"href="{{ route('tags.show',tagInfo.id) }}">{% if tagInfo.location %}<span class="fa fa-fw fa-map-marker"></span>{% endif %}<span class="fa fa-fw fa-tag"></span>{{ tagInfo.tag }}{% if tagInfo.attachments.count() > 0 %}<span class="fa fa-fw fa-paperclip"></span>{% endif %}</a></div>{% endfor %}diff --git a/resources/views/tags/show.twig b/resources/views/tags/show.twigindex 7171dd5e86..9fc09f8b99 100644--- a/resources/views/tags/show.twig+++ b/resources/views/tags/show.twig@@ -43,7 +43,7 @@{{ trans('list.date') }}</td><td>- {{ tag.date.formatLocalized(monthAndDayFormat) }}+ {{ tag.date.isoFormat(monthAndDayFormat) }}</td></tr>{% endif %}diff --git a/resources/views/transactions/bulk/edit.twig b/resources/views/transactions/bulk/edit.twigindex 3f85c20af8..509a35838f 100644--- a/resources/views/transactions/bulk/edit.twig+++ b/resources/views/transactions/bulk/edit.twig@@ -63,7 +63,7 @@</td>- <td>{{ journal.date.formatLocalized(monthAndDayFormat) }}</td>+ <td>{{ journal.date.isoFormat(monthAndDayFormat) }}</td><td>{% if journal.category_id != null %}<a href="{{ route('categories.show', [journal.category_id]) }}" title="{{ journal.category_name }}">{{ journal.category_name }}</a>diff --git a/resources/views/transactions/mass/delete.twig b/resources/views/transactions/mass/delete.twigindex 8cbd9b8b48..4fdd545fd0 100644--- a/resources/views/transactions/mass/delete.twig+++ b/resources/views/transactions/mass/delete.twig@@ -83,7 +83,7 @@{% endif %}</td><td>- {{ journal.date.formatLocalized(monthAndDayFormat) }}+ {{ journal.date.isoFormat(monthAndDayFormat) }}</td><td><a href="{{ route('accounts.show', [journal.source_account_id]) }}"diff --git a/resources/views/transactions/show.twig b/resources/views/transactions/show.twigindex 571c9ab1c0..202e5b52b6 100644--- a/resources/views/transactions/show.twig+++ b/resources/views/transactions/show.twig@@ -62,7 +62,7 @@<tr><td style="width:30%;">{{ trans('list.date') }}</td><td>- {{ first.date.formatLocalized(dateTimeFormat) }}+ {{ first.date.isoFormat(dateTimeFormat) }}</td></tr></tbody>@@ -285,7 +285,7 @@{% if journalHasMeta(journal.transaction_journal_id, dateField) %}<tr><td>{{ trans('list.'~dateField) }}</td>- <td>{{ journalGetMetaDate(journal.transaction_journal_id, dateField).formatLocalized(monthAndDayFormat) }}</td>+ <td>{{ journalGetMetaDate(journal.transaction_journal_id, dateField).isoFormat(monthAndDayFormat) }}</td></tr>{% endif %}{% endfor %}