Fixes #1402, Day-formatting doesn't respect CSL's "numeric-leading-zeros"-parameter

This commit is contained in:
Dan Stillman 2010-02-04 14:23:35 +00:00
parent 73317162c9
commit 0750f49bb0

View File

@ -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") {