Fixes #1402, Day-formatting doesn't respect CSL's "numeric-leading-zeros"-parameter
This commit is contained in:
parent
73317162c9
commit
0750f49bb0
|
@ -985,7 +985,7 @@ Zotero.CSL.prototype._processElements = function(item, element, formattedString,
|
||||||
}
|
}
|
||||||
} else if(part == "day") {
|
} else if(part == "day") {
|
||||||
string = string.toString();
|
string = string.toString();
|
||||||
if(form == "numeric-leading-zeros"
|
if(newForm == "numeric-leading-zeros"
|
||||||
&& string.length() == 1) {
|
&& string.length() == 1) {
|
||||||
string = "0" + string;
|
string = "0" + string;
|
||||||
} else if (newForm == "ordinal") {
|
} else if (newForm == "ordinal") {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user