diff --git a/module/metric/calc/product/scale/count_of_annual_created_release_in_product.php b/module/metric/calc/product/scale/count_of_annual_created_release_in_product.php index 78cddf1515..c47668c170 100755 --- a/module/metric/calc/product/scale/count_of_annual_created_release_in_product.php +++ b/module/metric/calc/product/scale/count_of_annual_created_release_in_product.php @@ -22,15 +22,15 @@ class count_of_annual_created_release_in_product extends baseCalc { public $dataset = 'getProductReleases'; - public $fieldList = array('t1.id', 't1.product', 't1.createdDate'); + public $fieldList = array('t1.id', 't1.product', 't1.date'); public $result = array(); public function calculate($row) { - if(empty($row->createdDate)) return null; + if(empty($row->date)) return null; - $year = substr($row->createdDate, 0, 4); + $year = substr($row->date, 0, 4); if($year == '0000') return null; if(!isset($this->result[$year])) $this->result[$year] = array(); diff --git a/module/metric/calc/product/scale/count_of_monthly_created_release_in_product.php b/module/metric/calc/product/scale/count_of_monthly_created_release_in_product.php index 7b74110ffc..fa6845c104 100755 --- a/module/metric/calc/product/scale/count_of_monthly_created_release_in_product.php +++ b/module/metric/calc/product/scale/count_of_monthly_created_release_in_product.php @@ -22,14 +22,14 @@ class count_of_monthly_created_release_in_product extends baseCalc { public $dataset = 'getProductReleases'; - public $fieldList = array('t1.id', 't1.product', 't1.createdDate'); + public $fieldList = array('t1.id', 't1.product', 't1.date'); public $result = array(); public function calculate($row) { $product = $row->product; - $createdDate = $row->createdDate; + $createdDate = $row->date; if(empty($createdDate)) return false; diff --git a/module/metric/calc/system/scale/count_of_weekly_created_release.php b/module/metric/calc/system/scale/count_of_weekly_created_release.php index b38ccc768e..621d125a9f 100755 --- a/module/metric/calc/system/scale/count_of_weekly_created_release.php +++ b/module/metric/calc/system/scale/count_of_weekly_created_release.php @@ -22,14 +22,14 @@ class count_of_weekly_created_release extends baseCalc { public $dataset = 'getReleases'; - public $fieldList = array('t1.createdDate'); + public $fieldList = array('t1.date'); public $result = array(); public function calculate($row) { - $year = $this->getYear($row->createdDate); - $week = $this->getWeek($row->createdDate); + $year = $this->getYear($row->date); + $week = $this->getWeek($row->date); if(!$year) return false;