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.