|
CSR :
|
|
|
Relates :
|
|
|
Relates :
|
This seems to be a regression from JDK-6456628
Effectively, if /etc/localtime is a binary (not a symlink to somewhere in /usr/share/zoneinfo), java.util.TimeZone.getDefault may return any of the
timezones that match the binary.
This can be done easily by using the oraclelinux:6 docker image as by default this has /etc/localtime as a binary that matches UTC.
Code to reproduce:
import java.util.TimeZone;
public class TZBug {
public static void main(String[] args) {
System.out.println(TimeZone.getDefault().getID());
}
}
|