It’s a “quirk” in the way the JVM looks up the zoneinfo file. See Bug ID 6456628.
The easiest workaround is to make /etc/localtime a symlink to the correct zoneinfo file. For Pacific time, the following commands should work:
# sudo cp /etc/localtime /etc/localtime.dist
# sudo ln -fs /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
I haven’t had any problems with the symlink approach.
Edit: Added “sudo” to the commands.
Related Contents:
- How can I get the current date and time in UTC or GMT in Java?
- Java using much more memory than heap size (or size correctly Docker memory limit)
- Error: Could not find or load main class [duplicate]
- Dates with no time or timezone component in Java/MySQL
- Hadoop “Unable to load native-hadoop library for your platform” warning
- Timezone conversion
- Convert Date/Time for given Timezone – java
- Running jmap getting Unable to open socket file
- How to store date/time and timestamps in UTC time zone with JPA and Hibernate
- How to tackle daylight savings using TimeZone in Java
- Run a Java Application as a Service on Linux
- “No X11 DISPLAY variable” – what does it mean?
- How to set a JVM TimeZone Properly
- How to set JAVA_HOME in Linux for all users
- java Calendar, Date, and Time management for a multi-timezone application
- How to execute bash command with sudo privileges in Java?
- Date and time conversion to some other Timezone in java
- How to stop java process gracefully?
- Downloading Java JDK on Linux via wget is shown license page instead
- Classpath does not work under linux
- Docker: Combine multiple images
- How to detect the timezone of a client?
- Java: How do you convert a UTC timestamp to local time?
- React on global hotkey in a Java program on Windows/Linux/Mac?
- How to download older google play services?
- Java Can’t connect to X11 window server using ‘localhost:10.0’ as the value of the DISPLAY variable
- How to get the current date and time of your timezone in Java?
- How to Parse Date from GMT TimeZone to IST TimeZone and Vice Versa in android
- Unable to obtain ZonedDateTime from TemporalAccessor using DateTimeFormatter and ZonedDateTime in Java 8
- How to change MySQL timezone in a database connection using Java?
- Technically what is the main difference between Oracle JDK and OpenJDK? [duplicate]
- Can’t find/install libXtst.so.6?
- Do line endings differ between Windows and Linux? [closed]
- JavaFX on Linux is showing a “Graphics Device initialization failed for : es2, sw”
- Understanding the Etc/GMT time zone
- How to stop repeated keyPressed() / keyReleased() events in Swing
- Java Linux Terminal in JPanel
- How to deal with LinkageErrors in Java?
- Java command not found on Linux
- Java 8 timezone conversions
- Why Maven uses JDK 1.6 but my java -version is 1.7
- How to convert date time from one time zone to another time zone
- What is the default timezone in java.util.Date
- Change file owner group under Linux with java.nio.Files
- How to execute Python script from Java (via command line)?
- What time zone does Date.toString() display?
- How to open a command terminal in Linux?
- How can I make this JButton visible? When I have progressive scan background JWindow()?
- JAVA_HOME directory in Linux
- Get TimeZone offset value from TimeZone without TimeZone name