Browse Source

Correct date formatting

master
Gintas Grigelionis 7 years ago
parent
commit
9509706d70
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/tests/junit/org/apache/tools/ant/taskdefs/optional/PropertyFileTest.java

+ 1
- 1
src/tests/junit/org/apache/tools/ant/taskdefs/optional/PropertyFileTest.java View File

@@ -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"));
}



Loading…
Cancel
Save