Loading src/php_app/app/Elo/Common.php +12 −1 Original line number Diff line number Diff line Loading @@ -101,6 +101,17 @@ class Common array_push($r, array("start"=>$yearstart->format($format), "stop"=> $yearend->format($format) ) ); } //tmp fix if ( Common::getTimeDate(str: end($r)["start"], format: "Y") !== Common::getTimeDate(format: "Y") ) { $thisyear = Common::getDateTime("now"); $thisyear = $thisyear->modify("first day of January"); $thisyear = $thisyear->modify("00:00:00"); array_push($r, array("start"=>$thisyear->format($format), "stop"=> $end->format($format) ) ); } return $r ?? null; } Loading Loading
src/php_app/app/Elo/Common.php +12 −1 Original line number Diff line number Diff line Loading @@ -101,6 +101,17 @@ class Common array_push($r, array("start"=>$yearstart->format($format), "stop"=> $yearend->format($format) ) ); } //tmp fix if ( Common::getTimeDate(str: end($r)["start"], format: "Y") !== Common::getTimeDate(format: "Y") ) { $thisyear = Common::getDateTime("now"); $thisyear = $thisyear->modify("first day of January"); $thisyear = $thisyear->modify("00:00:00"); array_push($r, array("start"=>$thisyear->format($format), "stop"=> $end->format($format) ) ); } return $r ?? null; } Loading