Stream gemeenteraad, kanalen, footers, bug fix zoeken

This commit is contained in:
2020-02-20 15:42:51 +01:00
parent 9baa4a8556
commit 0582de5bb0
9 changed files with 28 additions and 8 deletions

View File

@@ -52,8 +52,10 @@ class Controller extends BaseController
$program->end = new \DateTimeImmutable($item_data->end->date, new \DateTimeZone($item_data->end->timezone));
}
$now = new \DateTimeImmutable();
// Need a bit of slack here, otherwise the current program may show up
$now = new \DateTimeImmutable('2 minutes ago');
$data = json_decode(Storage::disk('local')->get('zojuist.json'))->schedule;
$i = 0;
foreach(array_reverse($data) as $item_data)
{
$recent = $program = new \Model\Program($item_data->program);