Hi
When testing java 9+181 I encountered an issue with one of our tests
There's a change in behaviour for DateTimeFormatter with the pattern 'a' argument
Test case:
String formattedDate = DateTimeFormatter.ofPattern("a").format(LocalDateTime.now());
System.out.println(formattedDate);
assertThat(formattedDate).isEqualTo("PM");
Passed on java 8
Fails on java 9 with: 'pm'
Is this an intentional change?
The javadocs still say PM
DateTimeFormatter (Java SE 9 & JDK 9 )