From b9b769db51f2f7f84186b14b1609e25fff7d80a9 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 11 Mar 2016 03:13:34 -0500 Subject: [PATCH] Trim repotime before passing to sqlToDate() --- chrome/content/zotero/xpcom/schema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 4d4716792..7bfc9b040 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 + "$");