Commit 0d6d61b9 authored by Vinicius Ruoso's avatar Vinicius Ruoso

Fixed set_date function to show correct data information.

The month 'abril' was written like 'abriu', and the Months array index has
been fixed to.
Signed-off-by: default avatarVinicius Ruoso <vkr07@c3sl.ufpr.br>
parent 295ea8ba
......@@ -62,13 +62,13 @@ function load_page(href){
}
function set_date(elementID){
var Months = new Array('janeiro', 'fevereiro', 'março', 'abriu',
var Months = new Array('janeiro', 'fevereiro', 'março', 'abril',
'maio', 'junho', 'julho', 'agosto', 'setembro',
'outubro', 'novembro', 'dezembro')
var now = new Date();
element = document.getElementById(elementID);
element.innerHTML = now.getDate() + " de " + Months[now.getMonth()-1] +
element.innerHTML = now.getDate() + " de " + Months[now.getMonth()] +
" de " + now.getFullYear();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment