Merge branch 'issue-77' into 'develop'

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

See merge request ldc-web/projets/volena!46
This commit is contained in:
karl.muller 2025-07-24 08:23:20 +00:00
commit 1bedaaee6e
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>