From 0750f49bb03354cfb35fa54f839a861f93d256d0 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 4 Feb 2010 14:23:35 +0000 Subject: [PATCH] Fixes #1402, Day-formatting doesn't respect CSL's "numeric-leading-zeros"-parameter --- chrome/content/zotero/xpcom/csl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/csl.js b/chrome/content/zotero/xpcom/csl.js index 1a1674f3e..2267ddfb9 100644 --- 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") {