Skip to content

Commit d0b4faf

Browse files
tobiasdiezkoppor
authored andcommitted
Fixed bug where conversion of a bibtex year/month representation to the biblatex date field an invalid date would be generated (i.e. 2013-1 instead of 2013-01)
1 parent d7ba753 commit d0b4faf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/sf/jabref/BibtexEntry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ public String getFieldOrAlias(String name) {
365365
if(month == 0)
366366
return year;
367367
else
368-
return year + "-" + month;
368+
return year + "-" + String.format("%02d", month);
369369
}
370370
}
371371
if(name.equals("year") || name.equals("month"))

0 commit comments

Comments
 (0)