diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 4d47167924..7bfc9b040a 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -542,7 +542,7 @@ Zotero.Schema = new function(){ var Mode = Zotero.Utilities.capitalize(mode); var repotime = yield Zotero.File.getContentsFromURLAsync("resource://zotero/schema/repotime.txt"); - var date = Zotero.Date.sqlToDate(repotime, true); + var date = Zotero.Date.sqlToDate(repotime.trim(), true); repotime = Zotero.Date.toUnixTimestamp(date); var fileNameRE = new RegExp("^[^\.].+\\" + fileExt + "$");