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

Incorrect time zone designator with JDK 1.8.0_152-b16 and JDK 1.7.0_101

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 7u101
    • tools

      OS time zone got changed, but JVM time zone (timezone designator) is not changed
      Downloaded tzupdater.jar from oracle site and
      http://www.iana.org/time-zones/repository/tzdata-latest.tar.gz

      Rename tzdata-latest.tar.gz to tzdata2017C.tar.gz and generate sha512sum for this.

      Before run this command "java -jar tzupdater.jar -l file:///var/tmp/tzdata2017C.tar.gz", below logs
        
       OS Time:
        
       [ogw@seliics01528 tmp]$ date
        Sun Oct 29 13:18:14 EAT 2017
        
       Application log:
       [Sun Oct 29 13:18:54 EAT 2017]

      Using date command, we changed the timezone.

      After that, java -jar tzupdater.jar -l file:///var/tmp/tzdata2017C.tar.gz, logs below

      OS Time:

       [ogw@seliics01528 tmp]$ java -jar tzupdater.jar -l file:///var/tmp/tzdata2017C.tar.gz
      Using file:///var/tmp/tzdata2017C.tar.gz as source for tzdata bundle.
      JRE has the same version as the tzupdater provided one (tzdata2017c).

      java -showversion Datecheck
      java version "1.7.0_101"
      Java(TM) SE Runtime Environment (build 1.7.0_101-b14)
      Java HotSpot(TM) 64-Bit Server VM (build 24.101-b14, mixed mode)

      Thu Nov 02 10:46:11 EAT 2017

      [ogw@seliics01528 java]$ date
      Thu Nov 2 10:46:39 CAT 2017

      OS time changes to CAT as expected ,but JVM time zone (timezone designator)
      is not changed

            rpatil Ramanand Patil (Inactive)
            shadowbug Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: