diff --git a/src/fr/devinsy/calgen/app/Calgen.java b/src/fr/devinsy/calgen/app/Calgen.java index 20453a8..149ad50 100644 --- a/src/fr/devinsy/calgen/app/Calgen.java +++ b/src/fr/devinsy/calgen/app/Calgen.java @@ -107,6 +107,17 @@ public final class Calgen System.out.println(line); } + // + if (current.getDayOfMonth() == 1) + { + String dash = StringUtils.repeat("-", 25); + String monthName = current.getMonth().getDisplayName(TextStyle.FULL, Locale.FRENCH); + monthName = StringUtils.capitalize(monthName); + String monthLine = String.format("%s %s %s", dash, monthName, dash); + System.out.println(monthLine); + } + + // current = current.minusDays(1); }