Fixed time formats.

This commit is contained in:
flash 2023-11-17 17:51:19 +00:00
parent 8777631062
commit d7b12fde49

View file

@ -61,9 +61,9 @@ class SplatoonRoutes extends RouteHandler {
$fest = new stdClass;
$fest->id = $festInfo->getId();
$fest->title = $festInfo->getTitle();
$fest->start = $festInfo->getStartTime();
$fest->midterm = $festInfo->getMidTermTime();
$fest->end = $festInfo->getEndTime();
$fest->start = str_replace('+00:00', 'Z', date(\DateTime::ATOM, $festInfo->getStartTime()));
$fest->midterm = str_replace('+00:00', 'Z', date(\DateTime::ATOM, $festInfo->getMidTermTime()));
$fest->end = str_replace('+00:00', 'Z', date(\DateTime::ATOM, $festInfo->getEndTime()));
$fest->state = $festInfo->getState();
$fest->teams = XArray::select($festInfo->getTeams(), function($teamInfo) {
$team = new stdClass;