Index: src/java/org/apache/commons/lang/time/DateUtils.java =================================================================== --- src/java/org/apache/commons/lang/time/DateUtils.java (revision 564023) +++ src/java/org/apache/commons/lang/time/DateUtils.java (working copy) @@ -640,19 +640,19 @@ int millisecs = val.get(Calendar.MILLISECOND); if (!round || millisecs < 500) { time = time - millisecs; - if (field == Calendar.SECOND) { - done = true; - } } + if (field == Calendar.SECOND) { + done = true; + } // truncate seconds int seconds = val.get(Calendar.SECOND); if (!done && (!round || seconds < 30)) { time = time - (seconds * 1000L); - if (field == Calendar.MINUTE) { - done = true; - } } + if (field == Calendar.MINUTE) { + done = true; + } // truncate minutes int minutes = val.get(Calendar.MINUTE);