Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8174076

java.time.format.DateTimeFormatter#format ISO_LOCAL_TIME wrong implementation

XMLWordPrintable

      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.

            rriggs Roger Riggs
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: