소스 검색

Correctif DateComponent

v1
Guillaume 3 년 전
부모
커밋
25b7949a4a
1개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. +14
    -0
      Component/DateComponent.php

+ 14
- 0
Component/DateComponent.php 파일 보기

@@ -52,4 +52,18 @@ class DateComponent
return '';
}

// getDeliverySlotHour
public function getHour(\DateTime $date)
{
$timestamp = $date->getTimestamp() ;
$hour = $this->date('%kh', $timestamp) ;
$minutes = $this->date('%M', $timestamp) ;

if($minutes != '00') {
$hour .= $minutes ;
}

return $hour ;
}

}

Loading…
취소
저장