Add comment regarding strToDate()'s month handling in retrieveItem()

This commit is contained in:
Dan Stillman 2017-12-08 00:14:25 -05:00
parent da1dd75265
commit 885ed6039f

View file

@ -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);