|
|
|
@ -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; |
|
|
|
|