1
I’m using the datepicker
bootstrap, and found that the 2016 calendar is wrong. Today for example is day 01/07/2016 Friday and the calendar is displaying as if it were Saturday.
Can anyone tell me if there is any solution to solve this problem?
Javascript
$('#data_venda').datepicker({language: 'pt-br'});
translating
;(function($){
$.fn.datepicker.dates['pt-BR'] = {
days: ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"],
daysShort: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"],
daysMin: ["Do", "Se", "Te", "Qu", "Qu", "Se", "Sa"],
months: ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"],
monthsShort: ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"],
today: "Hoje",
monthsTitle: "Meses",
clear: "Limpar",
format: "dd/mm/yyyy"
};
}(jQuery));
Can you post the website link of the component, the version you are using and how is the configuration? I use east of here and is normal.
– Randrade
I’m using this one right there. I’ll put the code in the question
– Miguel Batista
Strange your start by the second. I think your problem is just the order of daysMin in the calendar shown, because the normal is to start by Sunday.
– Randrade
Only with
$('#data_venda').datepicker();
gets that way?– Randrade
We have found that there is something wrong with the translation that makes this occur. But we have not yet solved.
– Miguel Batista
What version are you using? Could you create a fiddle for me to see?
– Randrade
In the files the version is not specified. But I just solved it here. It was the silliest thing
– Miguel Batista
Post the answer to the guys anyway, go others also go through this silly thing?
– Randrade