mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-24 19:33:01 +01:00
fix #2210
This commit is contained in:
parent
ecbf00e18e
commit
235d1266e8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user