Pull new-api into release/dev #5

Merged
mischa.spelt merged 26 commits from new-api into release/dev 2024-09-12 15:04:12 +02:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 35713d2974 - Show all commits

View File

@@ -144,7 +144,7 @@ class Controller extends BaseController
protected static function JsonToDateTime($obj) protected static function JsonToDateTime($obj)
{ {
return is_object($obj) ? new \DateTime($obj->date, new \DateTimeZone($obj->timezone)) : new \DateTime($obj); return is_object($obj) ? new \DateTime($obj->date, new \DateTimeZone($obj->timezone)) : \Carbon\Carbon::parse($obj)->setTimezone(date_default_timezone_get());
} }
public function __call($method, $arguments) public function __call($method, $arguments)

View File

@@ -16,7 +16,7 @@
{{$item['program']->name}} {{$item['program']->name}}
</div> </div>
<div class="program-times"><i class="fa-regular fa-clock"></i> <div class="program-times"><i class="fa-regular fa-clock"></i>
{{$item['starttime']->format('H:i')}} &ndash; {{$item['endtime']->format('H:i')}} {{$item['starttime']->format('H:i')}} &ndash; {{$item['endtime']->format('H:i')}}
</div> </div>
</a> </a>
</div> </div>
@@ -26,5 +26,5 @@
@endif @endif
</div> </div>
</div> </div>
@endforeach
@endforeach