Add useCurrent: false
in your code, which should appear
$('.form_datetime').datetimepicker({
language: 'pt',
format: 'yyyy-mm-dd hh:ii:ss',
autoclose: true,
todayBtn: true,
minuteStep: 10,
useCurrent: true
});
Another solution is you set the field... as soon as you open the modal.
your modal has an id, right ? we usually open the modal so $("#meumodal").modal();
Once you open the modal, you can set the value of the field within that modal....
$("#meumodal").find('.form_datetime').val(NOVA_DATA);
The variable nova_data, you can create it with javascript, or with php.... a technique that I use a lot is, create an input
<input type="hidden" value="<?php echo date('Y-m-d H:i:s'); ?>" id="data_time_atual>
This makes it much easier to catch the time with javascript
var hora = $("#data_time_atual").val();
now just set the NOVA_DATA
var hora = $("#data_time_atual").val();
$("#meumodal").find('.form_datetime').val(hora );
Here you also have the documentation link
https://eonasdan.github.io/bootstrap-datetimepicker/
which is the plugin used, you could provide the link
– novic