diff --git a/chrome/content/zotero/xpcom/date.js b/chrome/content/zotero/xpcom/date.js index 08b73bde5..ea21fe628 100644 --- a/chrome/content/zotero/xpcom/date.js +++ b/chrome/content/zotero/xpcom/date.js @@ -228,14 +228,15 @@ Zotero.Date = new function(){ var _dayRe = null; function strToDate(string) { - var date = {}; + var date = { + order: '' + }; // skip empty things if(!string) { return date; } - date.order = ''; var parts = []; // Parse 'yesterday'/'today'/'tomorrow'