diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index c6425416da..19750c5f0c 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -681,6 +681,10 @@ Zotero.Schema = new function(){ // var sql = "SELECT version FROM version WHERE schema=?"; var lastModTime = yield Zotero.DB.valueQueryAsync(sql, mode); + // Fix millisecond times (possible in 4.0?) + if (lastModTime > 9999999999) { + lastModTime = Math.round(lastModTime / 1000); + } var cache = {}; // XPI installation @@ -718,7 +722,7 @@ Zotero.Schema = new function(){ for (let i = 0; i < dbCache.length; i++) { let metadata = JSON.parse(dbCache[i]); let id = metadata.translatorID; - if (index[id] && index[id].lastUpdated == metadata.lastUpdated) { + if (index[id] && index[id].lastUpdated <= metadata.lastUpdated) { index[id].extract = false; } }