I try to create a form where the user can enter hours and minutes. If there is already a value in the database for the given day, I want to show this value as preset.
echo $this->Form->time('businesshours['.$weekday->id.'][start_hour1]',['type'=>'time','label'=>false,'min'=>'00:00','max'=>'24:00','required'=>'false','step'=>'60','value'=>$weekday->businesshours[0]->start_hour1->i18nFormat('HH:mm')]);
For example, if start_hour is “10:30”, I expected a input field like “10:30” , but what I get is a input field like “10:30:00”.
Does anyone know what I need to change?
Best regards
Dirk