зеркало из https://github.com/mozilla/gecko-dev.git
Bug 671167 - History time ranges should be based on local timezone. r=mfinkle
This commit is contained in:
Родитель
35655d09f6
Коммит
4a5105e95f
|
@ -1309,7 +1309,12 @@
|
|||
let lastTitle = null;
|
||||
let msPerDay = 86400000;
|
||||
let msPerWeek = msPerDay * 7;
|
||||
let today = new Date(Date.now() - (Date.now() % msPerDay));
|
||||
|
||||
let today = new Date();
|
||||
today.setHours(0);
|
||||
today.setMinutes(0);
|
||||
today.setSeconds(0);
|
||||
|
||||
for (let i = 0; i < childCount; i++) {
|
||||
let node = rootNode.getChild(i);
|
||||
let time = new Date(node.time / 1000); // node.time is microseconds
|
||||
|
|
Загрузка…
Ссылка в новой задаче