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