commit 0750f49bb03354cfb35fa54f839a861f93d256d0
parent 73317162c948636d8e8ad466176972a0f7e1ebee
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 4 Feb 2010 14:23:35 +0000
Fixes #1402, Day-formatting doesn't respect CSL's "numeric-leading-zeros"-parameter
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/csl.js b/chrome/content/zotero/xpcom/csl.js
@@ -985,7 +985,7 @@ Zotero.CSL.prototype._processElements = function(item, element, formattedString,
}
} else if(part == "day") {
string = string.toString();
- if(form == "numeric-leading-zeros"
+ if(newForm == "numeric-leading-zeros"
&& string.length() == 1) {
string = "0" + string;
} else if (newForm == "ordinal") {