Skip to content

Commit

Permalink
Merge pull request #118 from jamezp/LOGMGR-163-2.0
Browse files Browse the repository at this point in the history
[LOGMGR-163] Use the first day of the month when calculating the next…
  • Loading branch information
jamezp committed Jul 7, 2017
2 parents 820795f + 63703c3 commit c1cf697
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -207,7 +207,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) {
Expand Down

0 comments on commit c1cf697

Please sign in to comment.