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

DateTimeFormatter.ofLocalizedDateTime is not consistent with timezone abbreviat.

XMLWordPrintable

    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      MacOS 12.5.1
      java version "1.8.0_321"
      Java(TM) SE Runtime Environment (build 1.8.0_321-b07)
      Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode)


      A DESCRIPTION OF THE PROBLEM :
      DateTimeFormatter dtfmt = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.MEDIUM, FormatStyle.FULL).withLocale(locale);
      when I do dtfmt.format(zonedDateTime), for India Zone, it gives "IST" most of the time, however some time it gives "India Standard Time"
      problem is : experience is not consistent, sometime "IST" sometime "India Standard Time",
      it has to be either always "IST" or always "India Standard Time"




            naoto Naoto Sato
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: