@@ -4,7 +4,6 @@ namespace Lc\SovBundle\Component; | |||
class DateComponent | |||
{ | |||
public function date($format, $timestamp) | |||
{ | |||
setlocale(LC_TIME, 'fr_FR.UTF8', 'fr.UTF8', 'fr_FR.UTF-8', 'fr.UTF-8'); | |||
@@ -21,7 +20,7 @@ class DateComponent | |||
return $this->getNextDay($this->getDayByNumber($number, 'en')); | |||
} | |||
public static function getDayByNumber($number, $lang = 'fr') | |||
public function getDayByNumber($number, $lang = 'fr') | |||
{ | |||
if ($lang == 'fr') { | |||
$daysArray = [ |