Skip to content

Commit 906082b

Browse files
committed
fix formating
1 parent 277898a commit 906082b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎java-dates/src/test/java/com/baeldung/zoneddatetime/ZonedDateTimeUnitTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ public void givenZonedDateTime_whenConvertToString_thenOk() {
2424
LocalDateTime localDateTime = LocalDateTime.now();
2525
ZonedDateTime zonedDateTime = ZonedDateTime.of(localDateTime, ZoneId.of("UTC"));
2626

27-
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MM/dd/yyyy - hh:mm:ss Z");
27+
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MM/dd/yyyy - HH:mm:ss Z");
2828
String formattedString = zonedDateTime.format(formatter);
2929

30-
DateTimeFormatter formatter2 = DateTimeFormatter.ofPattern("MM/dd/yyyy - hh:mm:ss z");
30+
DateTimeFormatter formatter2 = DateTimeFormatter.ofPattern("MM/dd/yyyy - HH:mm:ss z");
3131
String formattedString2 = zonedDateTime.format(formatter2);
3232

3333
log.info(formattedString);

0 commit comments

Comments
 (0)