}
public static class Calc extends RoundDateCalculator {
private static final long serialVersionUID = -5893918049538006730L;
@Override
protected LocalDateTime adjust(final LocalDateTime dateTime) {
<BUG>LocalDateTime result = dateTime.withNano(0);
if (dateTime.isAfter(result.plusNanos(500000000))) {</BUG>
result = result.plusSeconds(1);
}
return result;

}
@Override
protected RoundCalculator getCalculator() {
return CALC;
}
public static class Calc extends RoundDateCalculator {
private static final long serialVersionUID = -5893918049538006730L;
@Override
protected LocalDateTime adjust(final LocalDateTime dateTime) {
LocalDateTime result = dateTime.truncatedTo(ChronoUnit.SECONDS);
if (dateTime.isAfter(result.plusNanos(500000000))) {
result = result.plusSeconds(1);
}
return result;
