This commit is contained in:
Gogs
2026-07-07 15:54:11 +02:00
parent c60bfc874a
commit 6d4189730f
17 changed files with 1293 additions and 16 deletions
+3
View File
@@ -35,6 +35,7 @@ class ProgrammeService
'title' => $p['title'] ?? '',
'desc' => $p['description'] ?? '',
'category' => $p['category'] ?? '',
'metadata' => $p['metadata'] ?? [],
'start' => (new DateTime())->setTimestamp((int)$p['start'])->setTimezone(new DateTimeZone($this->timezone)),
'stop' => (new DateTime())->setTimestamp((int)$p['stop'])->setTimezone(new DateTimeZone($this->timezone)),
];
@@ -80,6 +81,7 @@ class ProgrammeService
'subtitle' => $p['subtitle'] ?? '',
'description' => $p['description'] ?? '',
'category' => $p['category'] ?? '',
'metadata' => $p['metadata'] ?? [],
'start' => $start,
'stop' => $stop,
'percent' => $percent,
@@ -151,6 +153,7 @@ class ProgrammeService
'subtitle' => $p['subtitle'] ?? '',
'description' => $p['description'] ?? '',
'category' => $p['category'] ?? '',
'metadata' => $p['metadata'] ?? [],
'start' => $start,
'stop' => $stop,
'visible_start' => $visibleStart,