Skip to content
Snippets Groups Projects
Commit e8b08f81 authored by Eric Bremner's avatar Eric Bremner Committed by Igor Biki
Browse files

ISTWCMS-7156: update dates to use correct translated dates

parent d7f9206d
1 merge request!244ISTWCMS-7156: update templates to use translated dates
...@@ -52,28 +52,28 @@ ...@@ -52,28 +52,28 @@
{% include '@components/date/_date.twig' with { {% include '@components/date/_date.twig' with {
'date_format': 'long', 'date_format': 'long',
'date': d.start_date, 'date': d.start_date,
'translated': d['translated']['start_date'][date_format] ?? null, 'translated': d['translated']['start_date']['long'] ?? null,
'timezone': d.timezone, 'timezone': d.timezone,
} %} ({{ d['translated']['all_day'] }}) } %} ({{ d['translated']['all_day'] }})
{% else %} {% else %}
{% include '@components/date/_date.twig' with { {% include '@components/date/_date.twig' with {
'date_format': 'long_with_time', 'date_format': 'long_with_time',
'date': d.start_date, 'date': d.start_date,
'translated': d['translated']['start_date'][date_format] ?? null, 'translated': d['translated']['start_date']['long_with_time'] ?? null,
'timezone': d.timezone, 'timezone': d.timezone,
} %} } %}
- -
{% include '@components/date/_date.twig' with { {% include '@components/date/_date.twig' with {
'date_format': 'time_only', 'date_format': 'time_only',
'date': d.end_date, 'date': d.end_date,
'translated': d['translated']['start_date'][date_format] ?? null, 'translated': d['translated']['start_date']['time_only'] ?? null,
'timezone': d.timezone, 'timezone': d.timezone,
} %} } %}
{% include '@components/date/_date.twig' with { {% include '@components/date/_date.twig' with {
'date_format': 'timezone', 'date_format': 'timezone',
'date': d.start_date, 'date': d.start_date,
'translated': d['translated']['start_date'][date_format] ?? null, 'translated': d['translated']['start_date']['timezone'] ?? null,
'timezone': d.timezone, 'timezone': d.timezone,
} %} } %}
{% endif %} {% endif %}
...@@ -83,35 +83,35 @@ ...@@ -83,35 +83,35 @@
{% include '@components/date/_date.twig' with { {% include '@components/date/_date.twig' with {
'date_format': 'long', 'date_format': 'long',
'date': d.start_date, 'date': d.start_date,
'translated': d['translated']['start_date'][date_format] ?? null, 'translated': d['translated']['start_date']['long'] ?? null,
'timezone': d.timezone, 'timezone': d.timezone,
} %} } %}
- -
{% include '@components/date/_date.twig' with { {% include '@components/date/_date.twig' with {
'date_format': 'long', 'date_format': 'long',
'date': d.end_date, 'date': d.end_date,
'translated': d['translated']['end_date'][date_format] ?? null, 'translated': d['translated']['end_date']['long'] ?? null,
'timezone': d.timezone, 'timezone': d.timezone,
} %} ({{ d['translated']['all_day'] }}) } %} ({{ d['translated']['all_day'] }})
{% else %} {% else %}
{% include '@components/date/_date.twig' with { {% include '@components/date/_date.twig' with {
'date_format': 'long_with_time', 'date_format': 'long_with_time',
'date': d.start_date, 'date': d.start_date,
'translated': d['translated']['start_date'][date_format] ?? null, 'translated': d['translated']['start_date']['long_with_time'] ?? null,
'timezone': d.timezone, 'timezone': d.timezone,
} %} } %}
- -
{% include '@components/date/_date.twig' with { {% include '@components/date/_date.twig' with {
'date_format': 'long_with_time', 'date_format': 'long_with_time',
'date': d.end_date, 'date': d.end_date,
'translated': d['translated']['end_date'][date_format] ?? null, 'translated': d['translated']['end_date']['long_with_time'] ?? null,
'timezone': d.timezone, 'timezone': d.timezone,
} %} } %}
{% include '@components/date/_date.twig' with { {% include '@components/date/_date.twig' with {
'date_format': 'timezone', 'date_format': 'timezone',
'date': d.start_date, 'date': d.start_date,
'translated': d['translated']['start_date'][date_format] ?? null, 'translated': d['translated']['start_date']['timezone'] ?? null,
'timezone': d.timezone, 'timezone': d.timezone,
} %} } %}
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment