JDK-8190992 : Incorrect time zone designator with JDK 1.8.0_152-b16 and JDK 1.7.0_101
  • Type: Bug
  • Component: tools
  • Affected Version: 7u101
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2017-11-09
  • Updated: 2017-11-20
  • Resolved: 2017-11-20
Related Reports
Duplicate :  
Description
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 
Comments
This is the known restriction of Tzupdater tool as mentioned here: http://www.oracle.com/technetwork/java/javase/tzupdater-readme-136440.html#restrictions "This tool will not update display names of timezones that are completely new or have display name-related changes. Full support of all timezone display names requires installation of the latest Oracle Java SE platform JDK/JRE update release." Currently the tzdata2017c integration is tracked by this bug: https://bugs.openjdk.java.net/browse/JDK-8190258
20-11-2017