Error

Call to undefined function GregorianToJD()

/home/dpkkaunairac/public_html/protected/components/system/Utility.php(626)

614         $date2 = date('Y-m-d', strtotime($date2));
615 
616         $explodeDate1 = explode("-", $date1);
617         $date1    = $explodeDate1[2];
618         $month1    = $explodeDate1[1];
619         $year1    = $explodeDate1[0];
620 
621         $explodeDate2 = explode("-", $date2);
622         $date2    = $explodeDate2[2];
623         $month2    = $explodeDate2[1];
624         $year2    = $explodeDate2[0];
625 
626         $jd1 = GregorianToJD($month1, $date1, $year1);
627         $jd2 = GregorianToJD($month2, $date2, $year2);
628 
629 
630         $interval = $jd2 - $jd1;
631 
632         //return $interval;
633         return ($interval + 1);
634 
635     }
636     
637     /**
638      * count date diff between two datetimes

Stack Trace

#0
+
 /home/dpkkaunairac/public_html/protected/modules/vacancy/views/site/_view.php(13): Utility::dateInterval("27", "19")
08 else
09     $totalPosition = CcnEmployerVacancy::model()->countByAttributes(array('swt_users_id' => $data['swt_users_id'], 'publish' => 1));
10 
11 // Count interval date between now date and vacancy's starting date
12 $nowDate = date("Y-m-d H:i:s");
13 $interval = Utility::dateInterval($data['start_date'], $nowDate);
14 $class = $interval <= 7 ? 'new' : '';
15 ?>
16 
17 <div class="sep <?= WebOption::isThemeResponsif()?'clearfix ':''?><?php echo $class ?>" name="<?php echo $data['id'] ?>">
18     <span class="icons"></span>
#3
+
 /home/dpkkaunairac/public_html/protected/components/system/FListView.php(260): CBaseController->renderFile("/home/dpkkaunairac/public_html/protected/modules/vacancy/views/s...", array("datas" => null, "sort" => 1, "catid" => 0, "industry" => "Lainnya", ...))
255             {
256                 $data=$this->viewData;
257                 $data['index']=$i;
258                 $data['data']=$item;
259                 $data['widget']=$this;
260                 $owner->renderFile($viewFile,$data);
261                 if($j++ < $n-1)
262                     echo $this->separator;
263             }
264         }
265         else
#9
+
 /home/dpkkaunairac/public_html/protected/modules/vacancy/views/site/front_index_responsif.php(317): CBaseController->widget("application.components.system.FListView", array("dataProvider" => CSqlDataProvider, "viewData" => array("datas" => null, "sort" => 1, "catid" => 0, "industry" => "Lainnya"), "itemView" => "_view", "emptyText" => "<span class="empty bell-gothic mt-10">Lowongan tidak ditemukan.<..."))
312                     $emptyText = '<span class="empty bell-gothic mt-10">Lowongan tidak ditemukan.</span>';
313                     $this->widget('application.components.system.FListView', array(
314                         'dataProvider'=>$dataProvider,
315                         'viewData'=>array('datas' => $company, 'sort'=>$sort,'catid'=>$catid,'industry'=>$industry),
316                         'itemView'=>'_view',
317                         'emptyText' =>$emptyText,
318                     ));
319                     ?>
320                 </div>
321             </div>
322         </div>
2024-04-19 19:54:26 Apache Yii Framework/1.1.19