Add day to dateStart format
dyb-tech.com/LaLiga-BackEnd/pipeline/head This commit looks good
Details
dyb-tech.com/LaLiga-BackEnd/pipeline/head This commit looks good
Details
This commit is contained in:
parent
58076dca4c
commit
25d3d7c12c
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue