Ejemplo n.º 1
0
 /**
  * test the method to translate a mysql date to a long date fr dd/mm/yyyy hh:mm
  */
 public function testToDateFR()
 {
     $madate = "2000-12-27 23:45:00";
     $this->assertEquals("27/12/2000 23:45", CommonTools::toDateFR($madate));
 }
Ejemplo n.º 2
0
 public function getDateDemande()
 {
     if (Yii::app()->getLocale()->id == "fr") {
         return CommonTools::toDateFR($this->date_demande);
     } elseif (Yii::app()->getLocale()->id == "en") {
         return CommonTools::toDateEN($this->date_demande);
     }
 }