FULL PRODUCT VERSION :
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
java.time.format.DateTimeFormatter#format doesn't format a date with 0 as seconds correctly for ISO_DATE_TIME.
It still shows two zeros for the seconds even though the second-of-minute should NOT be shown according to the javadoc: https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html#ISO_LOCAL_TIME
REPRODUCIBILITY :
This bug can be reproduced always.
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
java.time.format.DateTimeFormatter#format doesn't format a date with 0 as seconds correctly for ISO_DATE_TIME.
It still shows two zeros for the seconds even though the second-of-minute should NOT be shown according to the javadoc: https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html#ISO_LOCAL_TIME
REPRODUCIBILITY :
This bug can be reproduced always.