fix: 🐛 display the correct date for the news in news card.blade and show.blade

This commit is contained in:
Nicolas Demangeat 2025-07-22 09:53:58 +02:00
parent ad0e6802d3
commit f5ca726c66
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
alt="{{ $news->thumbnail_alt }}">
<div class="card-body d-flex flex-column align-items-center">
<p class="card-date small fw-bold text-quad">
{{ str($news->publish_at->locale('fr_FR')->isoFormat('D MMMM Y'))->upper() }}
{{ str($news->displayed_date->locale('fr_FR')->isoFormat('D MMMM Y'))->upper() }}
</p>
<p class="card-title fw-bold text-center">
{{ $news->title }}

View file

@ -15,7 +15,7 @@
<div class="card master-card border-0 p-0">
<div class="card-header border-0 bg-transparent">
<div class="col-12 text-center">
<p class="text-sixt fw-bolder mb-0 mt-3">{{ str($news->publish_at->locale('fr_FR')->isoFormat('D MMMM Y'))->upper() }}
<p class="text-sixt fw-bolder mb-0 mt-3">{{ str($news->displayed_date->locale('fr_FR')->isoFormat('D MMMM Y'))->upper() }}
</p>
</div>
</div>