Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gertvdijk authored and talha131 committed Jun 13, 2020
1 parent 31e9d67 commit 5823306
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions templates/_includes/last_updated.html
Expand Up @@ -6,8 +6,7 @@
{% set delta = (article.modified - article.date).days %}
{% if delta > 0 %}
<h4>Last Updated</h4>
{% set day = article.modified.strftime('%d')|int %}
<time datetime="{{ article.modified.isoformat() }}">{{ article.modified.strftime('%b') }} {{ day }} {{- article.modified.strftime(', %Y') }}</time>
<time datetime="{{ article.modified.isoformat() }}">{{ article.locale_modified }}</time>
{% endif %}

{% elif article.modified %}
Expand Down

0 comments on commit 5823306

Please sign in to comment.