This commit is contained in:
gorhill 2016-12-03 09:21:31 -05:00
parent ecbf00e18e
commit 235d1266e8
1 changed files with 7 additions and 2 deletions

View File

@ -540,8 +540,9 @@ var renderLogEntry = function(entry) {
}
// Fields common to all rows.
var time = new Date(entry.tstamp);
tr.cells[0].textContent = padTo2(time.getHours()) + ':' +
var time = logDate;
time.setTime(entry.tstamp - logDateTimezoneOffset);
tr.cells[0].textContent = padTo2(time.getUTCHours()) + ':' +
padTo2(time.getMinutes()) + ':' +
padTo2(time.getSeconds());
@ -561,6 +562,10 @@ var renderLogEntry = function(entry) {
return tr;
};
// Reuse date objects.
var logDate = new Date(),
logDateTimezoneOffset = logDate.getTimezoneOffset() * 60000;
/******************************************************************************/
var renderLogEntries = function(response) {