From 885ed6039f62141b3eea25b54f8a7b27fddf03dc Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 8 Dec 2017 00:14:25 -0500 Subject: [PATCH] Add comment regarding strToDate()'s month handling in retrieveItem() --- chrome/content/zotero/xpcom/utilities.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index d80445f346..22cd667106 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -1657,6 +1657,7 @@ Zotero.Utilities = { // add year, month, and day, if they exist dateParts.push(dateObj.year); if(dateObj.month !== undefined) { + // strToDate() returns a JS-style 0-indexed month, so we add 1 to it dateParts.push(dateObj.month+1); if(dateObj.day) { dateParts.push(dateObj.day);