commit 885ed6039f62141b3eea25b54f8a7b27fddf03dc
parent da1dd752658291416b50d5b13b30d57b4b9d73fc
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 8 Dec 2017 00:14:25 -0500
Add comment regarding strToDate()'s month handling in retrieveItem()
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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);