About the en, I think it helps you this way:
$('.js_date_time').datetimepicker({
dateFormat: 'dd/mm/yy',
dayNames: ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'],
dayNamesMin: ['D', 'S', 'T', 'Q', 'Q', 'S', 'S', 'D'],
dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb', 'Dom'],
monthNames: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
nextText: 'Proximo',
prevText: 'Anterior'
});
I’ve researched some teams that do this tune-up for minutes, so I’ll leave here two links from datetime
. I believe that referencing in the same way as the example above on the dates about the time, can be of great help.
Option 1
Option 2
Obs: Both links are lang
and locale
, that ends up making obsolete the above example if you follow one of the two, but I left the example to make clear how to create a "translation" if you have difficulties with the locale
/lang
.
Updated:
Aiming at their script
and reading a little about, the settings are quite similar to what I made available, but with small changes. Follow the basic example of script
that you are using:
Obs: script
with parts copied on the developer’s website of this Picker
jQuery('#datetimepicker1').datetimepicker({
i18n:{
de:{
months:[
'Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto' 'Setembro', 'Outubro', 'Novembro', 'Dezembro',
],
dayOfWeek:[
'D', 'S', 'T', 'Q', 'Q', 'S', 'S', 'D'
]
}
},
timepicker:false,
format:'d.m.Y'
});
On the part of setting the hours on your Datetime, I checked that piece of script:
jQuery('#datetimepicker5').datetimepicker({
datepicker:false,
allowTimes:[
'12:00', '13:00', '15:00',
'17:00', '17:05', '17:20', '19:00', '20:00'
]
});
Obs: This example was done in "manual" mode of "translation" to be an option for more, if the lang
of your script not working properly in your code
The translation problem remains but I was able to solve the hours I was able to solve as follows:
$('.js_date_time').datetimepicker({
 format: 'd/m/Y H:i',
 allowTimes:['00:00', '00:30', '01:00', '01:30', '2:00', '02:30',
 '3:00', '3:30', '04:00', '04:30', '05:00', '05:30','06:00', '06:30'
 ],
 });
Note: I did not put the rest of the hours here for the sake of character limitation but I can understand the idea. I hope it helps anyone who finds themselves in the same situation as me.– Guilherme Ramalho