diff --git a/bnyer-common/bnyer-common-core/src/main/java/com/bnyer/common/core/utils/DateUtils.java b/bnyer-common/bnyer-common-core/src/main/java/com/bnyer/common/core/utils/DateUtils.java index 5dbea49..a51a11e 100644 --- a/bnyer-common/bnyer-common-core/src/main/java/com/bnyer/common/core/utils/DateUtils.java +++ b/bnyer-common/bnyer-common-core/src/main/java/com/bnyer/common/core/utils/DateUtils.java @@ -287,7 +287,7 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils case QUARTER: //хнг int monthValue = localDateTime.getMonthValue(); - int nextQuarterMonth = (monthValue - 1) / 3 * 3 + ((int) num * 4); + int nextQuarterMonth = (int)(((monthValue - 1) / 3.0) * 3) + ((int) num * 4); LocalDateTime nextQuarterToday = localDateTime.withMonth(nextQuarterMonth); format = nextQuarterToday.format(formatter); break;