fixing date display in browser
This commit is contained in:
parent
9af15c7399
commit
17a82a94fc
@ -277,7 +277,7 @@ function updateInboxView() {
|
|||||||
}
|
}
|
||||||
var date = new Date(parseInt(orderStorage[i].time));
|
var date = new Date(parseInt(orderStorage[i].time));
|
||||||
// date.setHours(date.getHours() + 2);
|
// 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>';
|
contentString += '<li><b>' + datereadable + ' </b>' + ' <i>'+ orderStorage[i].user +'</i><br/> '+orderStorage[i].message+'</li>';
|
||||||
}
|
}
|
||||||
document.getElementById( 'inbox' ).innerHTML = contentString;
|
document.getElementById( 'inbox' ).innerHTML = contentString;
|
||||||
|
Loading…
Reference in New Issue
Block a user