From 1bb6217ec13c406e24357ec9f0abf2286dbe4b04 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 14 Jun 2017 02:58:24 -0400 Subject: [PATCH] Disable debug output for Zotero.Date.strToDate() Too messy, and unlikely that we need it in submitted output --- chrome/content/zotero/xpcom/date.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/date.js b/chrome/content/zotero/xpcom/date.js index eb19e7349..9dd99ae58 100644 --- a/chrome/content/zotero/xpcom/date.js +++ b/chrome/content/zotero/xpcom/date.js @@ -387,7 +387,7 @@ Zotero.Date = new function(){ if(date.month) date.month--; // subtract one for JS style else delete date.month; - Zotero.debug("DATE: retrieved with algorithms: "+JSON.stringify(date)); + //Zotero.debug("DATE: retrieved with algorithms: "+JSON.stringify(date)); parts.push( { part: m[1], before: true }, @@ -402,7 +402,7 @@ Zotero.Date = new function(){ parts.push({ part: string }); } } else { - Zotero.debug("DATE: could not apply algorithms"); + //Zotero.debug("DATE: could not apply algorithms"); parts.push({ part: string }); } @@ -419,7 +419,7 @@ Zotero.Date = new function(){ { part: m[1], before: true }, { part: m[3] } ); - Zotero.debug("DATE: got year (" + date.year + ", " + JSON.stringify(parts) + ")"); + //Zotero.debug("DATE: got year (" + date.year + ", " + JSON.stringify(parts) + ")"); break; } } @@ -447,7 +447,7 @@ Zotero.Date = new function(){ { part: m[1], before: "m" }, { part: m[3], after: "m" } ); - Zotero.debug("DATE: got month (" + date.month + ", " + JSON.stringify(parts) + ")"); + //Zotero.debug("DATE: got month (" + date.month + ", " + JSON.stringify(parts) + ")"); break; } } @@ -481,7 +481,7 @@ Zotero.Date = new function(){ i, 1, { part: part } ); - Zotero.debug("DATE: got day (" + date.day + ", " + JSON.stringify(parts) + ")"); + //Zotero.debug("DATE: got day (" + date.day + ", " + JSON.stringify(parts) + ")"); break; } }