瀏覽代碼

Refactoring services

develop
Guillaume 3 年之前
父節點
當前提交
ce1b73251e
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. +1
    -2
      Component/DateComponent.php

+ 1
- 2
Component/DateComponent.php 查看文件

@@ -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…
取消
儲存