Add comment regarding strToDate()'s month handling in retrieveItem()
This commit is contained in:
parent
da1dd75265
commit
885ed6039f
1 changed files with 1 additions and 0 deletions
|
@ -1657,6 +1657,7 @@ Zotero.Utilities = {
|
||||||
// add year, month, and day, if they exist
|
// add year, month, and day, if they exist
|
||||||
dateParts.push(dateObj.year);
|
dateParts.push(dateObj.year);
|
||||||
if(dateObj.month !== undefined) {
|
if(dateObj.month !== undefined) {
|
||||||
|
// strToDate() returns a JS-style 0-indexed month, so we add 1 to it
|
||||||
dateParts.push(dateObj.month+1);
|
dateParts.push(dateObj.month+1);
|
||||||
if(dateObj.day) {
|
if(dateObj.day) {
|
||||||
dateParts.push(dateObj.day);
|
dateParts.push(dateObj.day);
|
||||||
|
|
Loading…
Reference in a new issue