Merge branch '67-fix-sentry-error' into 'trunk'

fix: 🐛 parse mouvement_created_at as date

See merge request ldc-web/projets/mesbr!74
This commit is contained in:
Vincent BRIDIER 2026-10-28 17:41:34 +01:00
commit a7226f8319

View file

@ -101,8 +101,8 @@
<h4><i class="fas fa-plus-square addcalendar"></i> {{ __('Calendrier de diffusion') }}</h4>
@foreach ($coupon->calendriers()->get() as $calendrier)
<div class="form-field-calendar">
<input type="date" name="startdate[]" value="{{ $calendrier->calendrier_startdate->format('Y-m-d') }}">
<input type="date" name="enddate[]" value="{{ $calendrier->calendrier_enddate->format('Y-m-d') }}">
<input type="date" name="startdate[]" value="{{ Carbon\Carbon::parse($calendrier->calendrier_startdate)->format('Y-m-d') }}">
<input type="date" name="enddate[]" value="{{ Carbon\Carbon::parse($calendrier->calendrier_enddate)->format('Y-m-d') }}">
<i class="fas fa-minus-square removecalendar"></i>
</div>
@endforeach
@ -117,7 +117,7 @@
</thead>
@foreach ($coupon->mouvements()->get() as $mouvement)
<tr>
<th>{{ $mouvement->mouvement_created_at->format('d/m/Y') }}</th>
<th>{{ Carbon\Carbon::parse($mouvement->mouvement_created_at)->format('d/m/Y') }}</th>
<th>{{ $mouvement->mouvement_nombre }}</th>
<th></th>
</tr>