Around the pt-br, 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 a few teams that do this tuning for minutes, so I'll leave here two links of datetime
. I believe that referencing the same way from the above example on the dates on the time, can be of great help.
Option 1
Option 2
obs: Both links contain lang
and locale
, which ends up making the above example obsolete if it is to follow one of the two, but left the example to make it clear how to create a "translation" if you have difficulties with locale
/ lang
.
Updated:
Aiming at your script
and reading a little about, the settings are quite similar to what I made available, but with minor changes. Here's the basic example of script
you're using:
obs: script
with parts copied to the developer site 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'
});
In the part of setting the time in your DateTime, I checked this 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 "manual" for "translation" to be an additional option if the lang
of your script does not work correctly in your code