Fix 24-uurs bug in terugluisteren

This commit is contained in:
2020-12-07 08:22:31 +01:00
parent c086676cb5
commit dd7335d201

View File

@@ -46,7 +46,8 @@
<ul class='blog row grid'>
@endif
<?php $url = route('programma') . $program->program->url; ?>
<?php $duration = $program->end->diff($program->start)->h; ?>
<?php $endStartDiff = $program->end->diff($program->start);
$duration = 24 * $endStartDiff->d + $endStartDiff->h; ?>
<li class="post card column column_1_2">
<div class="post_content">
<h2><a href="{{$url}}" title="{{$program->program->name}}">{!!$program->program->name!!}</a></h2>