From fbb57e80deae722c0feca9dcc7d42c790d0f79db Mon Sep 17 00:00:00 2001 From: Daniel Guzman Date: Sun, 2 Jun 2024 22:45:25 +0200 Subject: [PATCH] Fix date type --- src/Dto/SeasonDto.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dto/SeasonDto.php b/src/Dto/SeasonDto.php index dbcbadca..78263ca0 100644 --- a/src/Dto/SeasonDto.php +++ b/src/Dto/SeasonDto.php @@ -115,7 +115,7 @@ class SeasonDto } if ($seasonObj->getDateStart() !== null) { - $this->dateStart = $seasonObj->getDateStart(); + $this->dateStart = new \DateTime($seasonObj->getDateStart()->format('Y-m')); } $leagueObj = $seasonObj->getLeague(); if ($leagueObj !== null)