fixing date display in browser

This commit is contained in:
jngrt 2014-11-03 16:19:48 +01:00
parent 9af15c7399
commit 17a82a94fc

View File

@ -277,7 +277,7 @@ function updateInboxView() {
}
var date = new Date(parseInt(orderStorage[i].time));
// date.setHours(date.getHours() + 2);
var datereadable = date.getDate()+"/"+date.getMonth()+"/"+date.getFullYear()+" "+date.getHours()+":"+date.getMinutes();
var datereadable = date.getDate()+"/"+(date.getMonth()+1)+"/"+date.getFullYear()+" "+date.getHours()+":"+date.getMinutes();
contentString += '<li><b>' + datereadable + ' </b>' + ' <i>'+ orderStorage[i].user +'</i><br/> '+orderStorage[i].message+'</li>';
}
document.getElementById( 'inbox' ).innerHTML = contentString;