From 681f2a45b2e0a59f0c0aad5375ac49c0b2158572 Mon Sep 17 00:00:00 2001 From: Fanny Mugnier Date: Tue, 30 Mar 2021 17:50:55 +0200 Subject: [PATCH] changing date format + months in french --- user/config/system.yaml | 2 +- user/themes/sheaft-theme/templates/partials/blog_item.html.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/user/config/system.yaml b/user/config/system.yaml index 4e34d80..455b7af 100644 --- a/user/config/system.yaml +++ b/user/config/system.yaml @@ -8,7 +8,7 @@ home: pages: theme: sheaft-theme dateformat: - default: 'H:i d/m/Y' + default: 'Y-m-d' markdown: extra: false diff --git a/user/themes/sheaft-theme/templates/partials/blog_item.html.twig b/user/themes/sheaft-theme/templates/partials/blog_item.html.twig index 64789d2..54a30e2 100644 --- a/user/themes/sheaft-theme/templates/partials/blog_item.html.twig +++ b/user/themes/sheaft-theme/templates/partials/blog_item.html.twig @@ -9,7 +9,7 @@ {{ page.date|date("d") }}
- {{ "%b"|strftime(page.date) | convert_encoding('UTF-8', 'ISO-8859-1')}} + {{ page.date|localizeddate('long', 'none', 'fr', 'Europe/Paris', 'MMM') }}
{{ page.date|date("Y") }}