Use localizeddate to format date

refs #272
This commit is contained in:
2015-01-23 11:38:09 +01:00
parent e9be284c03
commit 98c3a23c65
6 changed files with 15 additions and 10 deletions

View File

@@ -58,8 +58,13 @@ This view should receive those arguments:
<dl>
<dt class="inline">{{ 'Date of birth'|trans }}</dt>
<dd>{{ person.dateOfBirth.format(date_format)
|default( 'Unknown date of birth'|trans ) }}</dd>
<dd>
{%- if person.dateOfBirth is not null -%}
{{ person.dateOfBirth|localizeddate('long', 'none') }}
{%- else -%}
{{ 'Unknown date of birth'|trans }}
{%- endif -%}
</dd>
<dt class="inline">{{ 'Place of birth'|trans }}</dt>