/** * 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)); }
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); } }