Fixed time formats.
This commit is contained in:
parent
8777631062
commit
d7b12fde49
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue