This commit is contained in:
@@ -39,7 +39,7 @@ class SeasonDto
|
|||||||
'seasonNumber' => $this->seasonNumber ?? null,
|
'seasonNumber' => $this->seasonNumber ?? null,
|
||||||
'numberOfTeams' => $numberOfTeams,
|
'numberOfTeams' => $numberOfTeams,
|
||||||
'gamesPerWeek' => $this->gamesPerWeek ?? null,
|
'gamesPerWeek' => $this->gamesPerWeek ?? null,
|
||||||
'dateStart' => !empty($this->dateStart) ? $this->dateStart->format('Y-m'): null,
|
'dateStart' => !empty($this->dateStart) ? $this->dateStart->format('Y-m-d'): null,
|
||||||
'leagueId' => $this->leagueId ?? null,
|
'leagueId' => $this->leagueId ?? null,
|
||||||
'leagueName' => $this->leagueName ?? null,
|
'leagueName' => $this->leagueName ?? null,
|
||||||
'pointsPerWin' => $this->pointsPerWin ?? null,
|
'pointsPerWin' => $this->pointsPerWin ?? null,
|
||||||
@@ -57,7 +57,7 @@ class SeasonDto
|
|||||||
}
|
}
|
||||||
if (!empty($dataList['dateStart']))
|
if (!empty($dataList['dateStart']))
|
||||||
{
|
{
|
||||||
$dateStart = \DateTime::createFromFormat('Y-m', $dataList['dateStart']);
|
$dateStart = \DateTime::createFromFormat('Y-m-d', $dataList['dateStart']);
|
||||||
if ($dateStart)
|
if ($dateStart)
|
||||||
{
|
{
|
||||||
$this->dateStart = $dateStart;
|
$this->dateStart = $dateStart;
|
||||||
|
|||||||
Reference in New Issue
Block a user