change the date format
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/deployment/woodpecker Pipeline was successful Details

This commit is contained in:
Simon Vieille 2023-02-06 13:48:52 +01:00
parent b0dd69eb4e
commit e890e17ea0
3 changed files with 4 additions and 3 deletions

View File

@ -10,7 +10,8 @@
"gregwar/captcha-bundle": "^2.2",
"knplabs/knp-markdown-bundle": "^1.9",
"knplabs/knp-menu-bundle": "^3.1",
"murph/murph-core": "^1.18"
"murph/murph-core": "^1.18",
"twig/intl-extra": "^3.5"
},
"require-dev": {
"symfony/browser-kit": "^5.2",

View File

@ -16,7 +16,7 @@
<ul class="pl-0">
<li class="mt-0 pl-0 inline-block">
<time datetime="{{ post.publishedAt|date("Y-m-d") }}" title="{{ post.publishedAt|date("r") }}">
{{- 'Le ' ~ post.publishedAt|date("d/m/Y à H\\hi") -}}
{{- 'Le ' ~ post.publishedAt|format_datetime('full', 'short', locale='fr') -}}
</time>
</li>
{% for category in post.categories %}

View File

@ -16,7 +16,7 @@
<ul class="no-margin">
<li class="block">
<time datetime="{{ post.publishedAt|date("Y-m-d") }}" title="{{ post.publishedAt|date("r") }}">
{{- 'Le ' ~ post.publishedAt|date("d/m/Y à H\\hi") -}}
{{- 'Le ' ~ post.publishedAt|format_datetime('full', 'short', locale='fr') -}}
</time>
</li>