How to remove the following error from my datetime picker in cakephp 3?

0

Hello good day, sorry I have this problem in my project. It happens that you add a datetime picker and it works but the problem is when I add the time the form stays in this state.  Here I present my code of add :

<div id="datetimepicker" class="input-append date  col-xs-12 col-md-8">
<?php echo $this->Form->control('fecha_presentacion', ['label'=>'Fecha y    hora de presentación: ', 'empty' => true, 'data-format' => 'yyyy-MM-dd hh:mm:ss', 'type' => 'text']);  ?>   
  <span class="add-on">
    <i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
  </span>
</div>
<script type="text/javascript"
 src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</script> 
<script type="text/javascript"
 src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js">
</script>
<script type="text/javascript"
 src="http://tarruda.github.com/bootstrap-datetimepicker/assets/js/bootstrap-datetimepicker.min.js">
</script>
<script type="text/javascript"
 src="http://tarruda.github.com/bootstrap-datetimepicker/assets/js/bootstrap-datetimepicker.pt-BR.js">
</script>
<script type="text/javascript">
  $('#datetimepicker').datetimepicker({
    format: 'yyyy-MM-dd hh:mm:ss',
    language: 'es'
  });
</script>

I hope your answer would help me a lot, thank you.

    
asked by Paola Ibarra Gonzalez 21.09.2017 в 23:20
source

1 answer

3

Regards

On the bootstrap-datetimepicker component page, look at format minutes are < em> ii no mm .

    
answered by 22.09.2017 в 03:19