always display proper month name

This commit is contained in:
tibbi 2016-07-31 23:16:51 +02:00
parent 58b12bbb4f
commit d6507ffb34

View File

@ -65,6 +65,7 @@ public class Formatter {
public static String getMonthName(int id) {
final Date date = new Date();
date.setDate(1);
date.setMonth(id);
String month = DateFormat.format("LLLL", date).toString();
return month.substring(0, 1).toUpperCase() + month.substring(1).toLowerCase();