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

java.util.TimeZone and java.time.ZonedDateTime use old time zone abbreviations

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      java.util.TimeZone and java.time.ZonedDateTime use old time zone abbreviations no longer available in the tzdata latest releases. IANA has switched to numeric abbreviations for some time zones in 2017a release ex:
      Atlantic/Azores was changed from AZOST to +00
      America/Sao_Paulo changed from BRT to -03

      When using java.util.TimeZone.getDisplayName(false, TimeZone.SHORT) and ZonedDateTime.ofInstant(beginInstant, timeZone.toZoneId()) returns AZOST and BRT respectively instead of returning +00 and -03.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Can be reproduced by using
      TimeZone.getTimeZone("Atlantic/Azores").getDisplayName(false, TimeZone.SHORT);
      ZonedDateTime.ofInstant(beginInstant, "Atlantic/Azores")

      ACTUAL -
      AZOST

      FREQUENCY : always


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

              Created:
              Updated:
              Resolved: