fix dump
This commit is contained in:
parent
9171ecbf6c
commit
0d9caea067
|
@ -236,7 +236,6 @@ class ScrumRepository extends ServiceEntityRepository
|
||||||
}
|
}
|
||||||
|
|
||||||
if($fgissueupdated) {
|
if($fgissueupdated) {
|
||||||
dump(json_decode(json_encode($giteaissue), true)["updated_at"]);
|
|
||||||
$updateissue=new \DateTime(json_decode(json_encode($giteaissue), true)["updated_at"]);
|
$updateissue=new \DateTime(json_decode(json_encode($giteaissue), true)["updated_at"]);
|
||||||
$updateissue->setTimezone(new \DateTimeZone("UTC"));
|
$updateissue->setTimezone(new \DateTimeZone("UTC"));
|
||||||
array_push($updatedates,$updateissue);
|
array_push($updatedates,$updateissue);
|
||||||
|
@ -258,7 +257,6 @@ class ScrumRepository extends ServiceEntityRepository
|
||||||
$this->showtime(false,"Traiter les issues");
|
$this->showtime(false,"Traiter les issues");
|
||||||
|
|
||||||
if($fgscrumupdate) {
|
if($fgscrumupdate) {
|
||||||
dump($updatedates);
|
|
||||||
// Convertir les objets DateTime en timestamps
|
// Convertir les objets DateTime en timestamps
|
||||||
$timestamps = array_map(function($date) {
|
$timestamps = array_map(function($date) {
|
||||||
return $date->getTimestamp();
|
return $date->getTimestamp();
|
||||||
|
@ -271,8 +269,6 @@ class ScrumRepository extends ServiceEntityRepository
|
||||||
$mostRecentDate = (new \DateTime())->setTimestamp($mostRecentTimestamp);
|
$mostRecentDate = (new \DateTime())->setTimestamp($mostRecentTimestamp);
|
||||||
|
|
||||||
// Mettre à jour la date update du scrum
|
// Mettre à jour la date update du scrum
|
||||||
dump($mostRecentDate);
|
|
||||||
dump("pouet");
|
|
||||||
$scrum->setUpdatedate($mostRecentDate);
|
$scrum->setUpdatedate($mostRecentDate);
|
||||||
$this->_em->flush();
|
$this->_em->flush();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue