diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/PropertyFileTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/PropertyFileTest.java index b972eaaf5..71af44f66 100644 --- a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/PropertyFileTest.java +++ b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/PropertyFileTest.java @@ -158,7 +158,7 @@ public class PropertyFileTest { Properties props = getTestProperties(); LocalDate currentDate = LocalDate.now().plusDays(delta); - assertEquals(String.format("%d/%02d/%d", currentDate.getYear(), currentDate.getMonthValue(), + assertEquals(String.format("%d/%02d/%02d", currentDate.getYear(), currentDate.getMonthValue(), currentDate.getDayOfMonth()), props.getProperty("date")); }