switch from --utc to -u flag to enable UTC output for date command so it works on both Linux/Windows (which support --utc in addition to -u) and Mac OS X (which only supports -u)

This commit is contained in:
Myk Melez 2009-04-08 15:00:02 -07:00
parent a7b212ab0b
commit c699fdf732
2 changed files with 6 additions and 0 deletions

View File

@ -657,6 +657,7 @@ BookmarksTracker.prototype = {
// has a bug where it will generate a new one instead of throwing).
// Our solution: cache item IDs -> GUIDs
let before = new Date();
// FIXME: very roundabout way of getting id -> guid mapping!
let store = new BookmarksStore();
let all = store.getAllIDs();
@ -664,6 +665,8 @@ BookmarksTracker.prototype = {
for (let guid in all) {
this._all[this._bms.getItemIdForGUID(guid)] = guid;
}
let after = new Date();
dump((after - before) + "ms spent mapping id -> guid for " + [key for (key in all)].length + " bookmark items\n");
// Ignore changes to the special roots. We use special names for them, so
// ignore their "real" places guid as well as ours, just in case

View File

@ -494,6 +494,7 @@ HistoryTracker.prototype = {
_init: function HT__init() {
this.__proto__.__proto__._init.call(this);
let before = new Date();
// FIXME: very roundabout way of getting url -> guid mapping!
// FIXME2: not updated after startup
let all = this._store.getAllIDs();
@ -501,6 +502,8 @@ HistoryTracker.prototype = {
for (let guid in all) {
this._all[all[guid]] = guid;
}
let after = new Date();
dump((after - before) + "ms spent mapping id -> guid for " + [key for (key in all)].length + " history items\n");
this._hsvc.addObserver(this, false);
},