diff --git a/app/Http/Middleware/Range.php b/app/Http/Middleware/Range.php
index 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.php
index 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.twig
index 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)) }}
diff --git a/resources/views/accounts/reconcile/overview.twig b/resources/views/accounts/reconcile/overview.twig
index 7116cf6ed4..914a897bf6 100644
--- a/resources/views/accounts/reconcile/overview.twig
+++ b/resources/views/accounts/reconcile/overview.twig
@@ -21,7 +21,7 @@
- {{ 'submitted_start_balance'|_ }} ({{ start.formatLocalized(monthAndDayFormat) }}) |
+ {{ 'submitted_start_balance'|_ }} ({{ start.isoFormat(monthAndDayFormat) }}) |
{{ formatAmountByAccount(account, startBalance) }} |
@@ -33,7 +33,7 @@
{{ formatAmountByAccount(account, clearedAmount) }} |
- {{ 'submitted_end_balance'|_ }} ({{ end.formatLocalized(monthAndDayFormat) }}) |
+ {{ 'submitted_end_balance'|_ }} ({{ end.isoFormat(monthAndDayFormat) }}) |
{{ formatAmountByAccount(account, endBalance) }} |
diff --git a/resources/views/accounts/reconcile/show.twig b/resources/views/accounts/reconcile/show.twig
index 92e4b6e535..dd503dec9c 100644
--- a/resources/views/accounts/reconcile/show.twig
+++ b/resources/views/accounts/reconcile/show.twig
@@ -44,7 +44,7 @@
{{ trans('list.date') }} |
- {{ journal.date.formatLocalized(monthAndDayFormat) }} |
+ {{ journal.date.isoFormat(monthAndDayFormat) }} |
diff --git a/resources/views/accounts/reconcile/transactions.twig b/resources/views/accounts/reconcile/transactions.twig
index 0b3389205e..891e988d8c 100644
--- a/resources/views/accounts/reconcile/transactions.twig
+++ b/resources/views/accounts/reconcile/transactions.twig
@@ -28,7 +28,7 @@
- {{ trans('firefly.start_of_reconcile_period', {period: start.formatLocalized(monthAndDayFormat) }) }}
+ {{ trans('firefly.start_of_reconcile_period', {period: start.isoFormat(monthAndDayFormat) }) }}
|
@@ -49,7 +49,7 @@
|
- {{ trans('firefly.end_of_reconcile_period', {period: end.formatLocalized(monthAndDayFormat) }) }}
+ {{ trans('firefly.end_of_reconcile_period', {period: end.isoFormat(monthAndDayFormat) }) }}
|
@@ -133,7 +133,7 @@
|
- {{ journal.date.formatLocalized(monthAndDayFormat) }}
+ {{ journal.date.isoFormat(monthAndDayFormat) }}
|
@@ -163,7 +163,7 @@
|
- {{ trans('firefly.start_of_reconcile_period', {period: start.formatLocalized(monthAndDayFormat) }) }}
+ {{ trans('firefly.start_of_reconcile_period', {period: start.isoFormat(monthAndDayFormat) }) }}
|
diff --git a/resources/views/accounts/show.twig b/resources/views/accounts/show.twig
index b6d45b3a14..6eb878e1a8 100644
--- a/resources/views/accounts/show.twig
+++ b/resources/views/accounts/show.twig
@@ -13,7 +13,7 @@
{{ 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 }}
|
{{ transaction.description }} |
- {{ transaction.date.formatLocalized(monthAndDayFormat) }}
+ {{ transaction.date.isoFormat(monthAndDayFormat) }}
|
diff --git a/resources/views/tags/index.twig b/resources/views/tags/index.twig
index 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 %}{% endif %}{{ tagInfo.tag }}{% if tagInfo.attachments.count() > 0 %}{% endif %}
{% endfor %}
diff --git a/resources/views/tags/show.twig b/resources/views/tags/show.twig
index 7171dd5e86..9fc09f8b99 100644
--- a/resources/views/tags/show.twig
+++ b/resources/views/tags/show.twig
@@ -43,7 +43,7 @@
{{ trans('list.date') }}
|
- {{ tag.date.formatLocalized(monthAndDayFormat) }}
+ {{ tag.date.isoFormat(monthAndDayFormat) }}
|
{% endif %}
diff --git a/resources/views/transactions/bulk/edit.twig b/resources/views/transactions/bulk/edit.twig
index 3f85c20af8..509a35838f 100644
--- a/resources/views/transactions/bulk/edit.twig
+++ b/resources/views/transactions/bulk/edit.twig
@@ -63,7 +63,7 @@
- {{ journal.date.formatLocalized(monthAndDayFormat) }} |
+ {{ journal.date.isoFormat(monthAndDayFormat) }} |
{% if journal.category_id != null %}
{{ journal.category_name }}
diff --git a/resources/views/transactions/mass/delete.twig b/resources/views/transactions/mass/delete.twig
index 8cbd9b8b48..4fdd545fd0 100644
--- a/resources/views/transactions/mass/delete.twig
+++ b/resources/views/transactions/mass/delete.twig
@@ -83,7 +83,7 @@
{% endif %}
|
- {{ journal.date.formatLocalized(monthAndDayFormat) }}
+ {{ journal.date.isoFormat(monthAndDayFormat) }}
|
| {{ trans('list.date') }} |
- {{ first.date.formatLocalized(dateTimeFormat) }}
+ {{ first.date.isoFormat(dateTimeFormat) }}
|
@@ -285,7 +285,7 @@
{% if journalHasMeta(journal.transaction_journal_id, dateField) %}
{{ trans('list.'~dateField) }} |
- {{ journalGetMetaDate(journal.transaction_journal_id, dateField).formatLocalized(monthAndDayFormat) }} |
+ {{ journalGetMetaDate(journal.transaction_journal_id, dateField).isoFormat(monthAndDayFormat) }} |
{% endif %}
{% endfor %}