Trim repotime before passing to sqlToDate()
This commit is contained in:
parent
39f7d0f333
commit
b9b769db51
|
@ -542,7 +542,7 @@ Zotero.Schema = new function(){
|
||||||
var Mode = Zotero.Utilities.capitalize(mode);
|
var Mode = Zotero.Utilities.capitalize(mode);
|
||||||
|
|
||||||
var repotime = yield Zotero.File.getContentsFromURLAsync("resource://zotero/schema/repotime.txt");
|
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);
|
repotime = Zotero.Date.toUnixTimestamp(date);
|
||||||
|
|
||||||
var fileNameRE = new RegExp("^[^\.].+\\" + fileExt + "$");
|
var fileNameRE = new RegExp("^[^\.].+\\" + fileExt + "$");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user