Trim repotime before passing to sqlToDate()
This commit is contained in:
parent
39f7d0f333
commit
b9b769db51
1 changed files with 1 additions and 1 deletions
|
@ -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 + "$");
|
||||
|
|
Loading…
Add table
Reference in a new issue