Esempio n. 1
0
 /**
  * test the method to translate a mysql date to a long date en yyyy-mm-dd hh:mm
  */
 public function testToDateEN()
 {
     $madate = "2000-12-27 23:45:00";
     $this->assertEquals("2000-12-27 23:45", CommonTools::toDateEN($madate));
 }
Esempio 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);
     }
 }