Skip to content

Commit

Permalink
Fix filter
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Valchev authored and bobdenotter committed Apr 3, 2021
1 parent 2fb8968 commit dda8985
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/theme/skeleton/partials/_recordfooter.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% endif %}
{{ __('general.phrase.written-by-on', {
'%name%': record.author.displayName|default(__('Unknown')),
'%date%': record.publishedAt|localedatetime("%A %B %e, %Y")
'%date%': record.publishedAt|localdate
}) }}
</p>

Expand Down
4 changes: 2 additions & 2 deletions templates/helpers/_field_blocks.twig
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
{# Date / Datetime fields #}
{% if type == "date" %}
<p>
<strong>{{ field|label }}</strong>: {{ field|localedatetime("%A %B %e, %Y") }}
{%- if field.definition.mode == 'datetime' %}, {{ field|localedatetime("%H:%M:%S") }}{% endif %}
<strong>{{ field|label }}</strong>: {{ field|localdate }}
{%- if field.definition.mode == 'datetime' %}, {{ field|localdate("H:i:s") }}{% endif %}
</p>
{% endif %}

Expand Down

0 comments on commit dda8985

Please sign in to comment.