Skip to content

Commit 5823306

Browse files
gertvdijktalha131
authored andcommitted
fix(article): use locale formatted Modified (Last Updated) date
This applies the same fix as with the Published date format in commit 1da552c. Fixes #613
1 parent 31e9d67 commit 5823306

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

templates/_includes/last_updated.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
{% set delta = (article.modified - article.date).days %}
77
{% if delta > 0 %}
88
<h4>Last Updated</h4>
9-
{% set day = article.modified.strftime('%d')|int %}
10-
<time datetime="{{ article.modified.isoformat() }}">{{ article.modified.strftime('%b') }} {{ day }} {{- article.modified.strftime(', %Y') }}</time>
9+
<time datetime="{{ article.modified.isoformat() }}">{{ article.locale_modified }}</time>
1110
{% endif %}
1211

1312
{% elif article.modified %}

0 commit comments

Comments
 (0)