From 42c02526efb22fa52401ddb7808278d757ff6d29 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 6 May 2014 14:49:10 -0400 Subject: [PATCH] Fix parsing of January dates in Zotero.Date.strToISO() https://forums.zotero.org/discussion/36550/#Item_6 --- chrome/content/zotero/xpcom/date.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/date.js b/chrome/content/zotero/xpcom/date.js index ea21fe6285..c92721c9c4 100644 --- a/chrome/content/zotero/xpcom/date.js +++ b/chrome/content/zotero/xpcom/date.js @@ -533,7 +533,7 @@ Zotero.Date = new function(){ if(date.year) { var dateString = Zotero.Utilities.lpad(date.year, "0", 4); - if(date.month) { + if (parseInt(date.month) == date.month) { dateString += "-"+Zotero.Utilities.lpad(date.month+1, "0", 2); if(date.day) { dateString += "-"+Zotero.Utilities.lpad(date.day, "0", 2);