Explorar el Código

Correctif DateComponent

v1
Guillaume hace 3 años
padre
commit
25b7949a4a
Se han modificado 1 ficheros con 14 adiciones y 0 borrados
  1. +14
    -0
      Component/DateComponent.php

+ 14
- 0
Component/DateComponent.php Ver fichero

@@ -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 ;
}

}

Cargando…
Cancelar
Guardar