mirror of https://github.com/gorhill/uBlock.git
fix #2210
This commit is contained in:
parent
ecbf00e18e
commit
235d1266e8
|
@ -540,8 +540,9 @@ var renderLogEntry = function(entry) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fields common to all rows.
|
// Fields common to all rows.
|
||||||
var time = new Date(entry.tstamp);
|
var time = logDate;
|
||||||
tr.cells[0].textContent = padTo2(time.getHours()) + ':' +
|
time.setTime(entry.tstamp - logDateTimezoneOffset);
|
||||||
|
tr.cells[0].textContent = padTo2(time.getUTCHours()) + ':' +
|
||||||
padTo2(time.getMinutes()) + ':' +
|
padTo2(time.getMinutes()) + ':' +
|
||||||
padTo2(time.getSeconds());
|
padTo2(time.getSeconds());
|
||||||
|
|
||||||
|
@ -561,6 +562,10 @@ var renderLogEntry = function(entry) {
|
||||||
return tr;
|
return tr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Reuse date objects.
|
||||||
|
var logDate = new Date(),
|
||||||
|
logDateTimezoneOffset = logDate.getTimezoneOffset() * 60000;
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
var renderLogEntries = function(response) {
|
var renderLogEntries = function(response) {
|
||||||
|
|
Loading…
Reference in New Issue