closes #825: Dates with a month on January can't be displayed

This commit is contained in:
Simon Kornblith 2007-11-14 17:20:24 +00:00
parent d8b4e2d189
commit e14401a25d

View File

@ -1088,8 +1088,9 @@ Zotero.CSL.prototype._processElements = function(item, element, formattedString,
// if month is a numeric month, format as such
if(!isNaN(string*1)) {
if(newForm == "numeric-leading-zeros") {
string = (string+1).toString();
if(string.length == 1) {
string = ("0" + (1+string)).toString();
string = "0" + string;
}
} else if(newForm == "short") {
string = this._terms["short"]["_months"][string];