http://bugzilla.opensuse.org/show_bug.cgi?id=1175548 Bug ID: 1175548 Summary: timezone-java ships invalid zonefile 'Asia/Beijing' Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Minor Priority: P5 - None Component: Java Assignee: java-maintainers@suse.de Reporter: opensuse@zehnvierzig.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Overview: The package 'timezone-java' contains an invalid time zone 'Asia/Beijing'. This zone is not known to IANA or anybody else. Beijing is part of the Chinese Standard Time (CST) and thus in zone 'Asia/Shanghai'. Steps to reproduce: Using OpenJDK from the Main Repository (OSS) and call ZoneId.getAvailableZoneIds() The method returns (among others) 'Asia/Beijing'. Because the TzdbZoneRulesProvider is checking $JAVA_HOME/conf/tz.properties for TZDB data. The property file points to the installed content of the timezone-java package under '/usr/share/javazi'. Impact: The list of zones returned by JDKs ZoneId.getAvailableZoneIds() is not compatible to the very popular joda-time package nor compatible to the tzdb.dat zone data shipped with OpenJDK. Solution: Remove 'Asia/Beijing' from timezone-java package (and from the timezone package as well). Maybe keep it as an alias to 'Asia/Shanghai'? OR Use Oracle's tzupdater Tool/JAR to fetch and deploy latest zone data from IANA. See: * https://data.iana.org/time-zones/ * https://www.oracle.com/java/technologies/javase/tzupdater-readme.html -- You are receiving this mail because: You are on the CC list for the bug.