www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit b9b769db51f2f7f84186b14b1609e25fff7d80a9
parent 39f7d0f3332aee3e976484b280a4d6874778a97f
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 11 Mar 2016 03:13:34 -0500

Trim repotime before passing to sqlToDate()

Diffstat:
Mchrome/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 @@ -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 + "$");