예제 #1
0
파일: Accounts.php 프로젝트: hkhateb/linet3
 public function afterFind()
 {
     if ($this->dateDBformat) {
         $this->dateDBformat = false;
         $this->src_date = date(Yii::app()->locale->getDateFormat('phpshort'), strtotime($this->src_date));
     }
     return parent::afterFind();
 }
예제 #2
0
파일: Docs.php 프로젝트: hkhateb/linet3
 public function afterFind()
 {
     if ($this->dateDBformat) {
         $this->dateDBformat = false;
         $this->due_date = date(Yii::app()->locale->getDateFormat('phpdatetimes'), strtotime($this->due_date));
         $this->issue_date = date(Yii::app()->locale->getDateFormat('phpdatetimes'), strtotime($this->issue_date));
         $this->reg_date = date(Yii::app()->locale->getDateFormat('phpdatetimes'), strtotime($this->reg_date));
         $this->ref_date = date(Yii::app()->locale->getDateFormat('phpdatetimes'), strtotime($this->ref_date));
     }
     $this->getRef();
     return parent::afterFind();
 }