change the date format
This commit is contained in:
parent
b0dd69eb4e
commit
e890e17ea0
|
@ -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",
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue