diff --git a/src/main/java/org/jboss/logmanager/handlers/PeriodicRotatingFileHandler.java b/src/main/java/org/jboss/logmanager/handlers/PeriodicRotatingFileHandler.java index 02d45e9e..f4894fb2 100644 --- a/src/main/java/org/jboss/logmanager/handlers/PeriodicRotatingFileHandler.java +++ b/src/main/java/org/jboss/logmanager/handlers/PeriodicRotatingFileHandler.java @@ -217,7 +217,8 @@ private void calcNextRollover(final long fromTime) { case YEAR: calendar.set(Calendar.MONTH, 0); case MONTH: - calendar.set(Calendar.DAY_OF_MONTH, 0); + // Needs to be set to the first day of the month + calendar.set(Calendar.DAY_OF_MONTH, 1); calendar.clear(Calendar.WEEK_OF_MONTH); case WEEK: if (period == Period.WEEK) {