Fix date type
dyb-tech.com/LaLiga-BackEnd/pipeline/head This commit looks good Details

This commit is contained in:
Daniel Guzman 2024-06-02 22:45:25 +02:00
parent 65b02bc11e
commit fbb57e80de
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class SeasonDto
} }
if ($seasonObj->getDateStart() !== null) if ($seasonObj->getDateStart() !== null)
{ {
$this->dateStart = $seasonObj->getDateStart(); $this->dateStart = new \DateTime($seasonObj->getDateStart()->format('Y-m'));
} }
$leagueObj = $seasonObj->getLeague(); $leagueObj = $seasonObj->getLeague();
if ($leagueObj !== null) if ($leagueObj !== null)