Commit c4889831 authored by Administrator's avatar Administrator
Browse files

tmp fix for price retrieval

parent 87266dbb
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -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;
    }