瀏覽代碼

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