1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-24 19:33:01 +01:00
This commit is contained in:
gorhill 2016-12-03 09:21:31 -05:00
parent ecbf00e18e
commit 235d1266e8

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) {