Browse Source

Refactoring services

develop
Guillaume 3 years ago
parent
commit
ce1b73251e
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      Component/DateComponent.php

+ 1
- 2
Component/DateComponent.php View File

@@ -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 = [

Loading…
Cancel
Save