You can pass the JVM this param
-Duser.timezone
For example
-Duser.timezone=Europe/Sofia
and this should do the trick.
Setting the environment variable TZ also does the trick on Linux.
More Related Contents:
- Why is subtracting these two times (in 1927) giving a strange result?
- Real differences between “java -server” and “java -client”?
- How do I set the proxy to be used by the JVM
- Memory address of variables in Java
- How to store date/time and timestamps in UTC time zone with JPA and Hibernate
- Java – Get a list of all Classes loaded in the JVM
- What is the default encoding of the JVM?
- Gradle proxy configuration
- What does JVM flag CMSClassUnloadingEnabled actually do?
- Why I can’t create an array with large size?
- How to detect the timezone of a client?
- Shared Memory between two JVMs
- “Error occurred during initialization of VM; Could not reserve enough space for object heap” using -Xmx3G
- Where are generic types stored in java class files?
- Does Java guarantee that Object.getClass() == Object.getClass()?
- Why does the (Oracle) JVM have a fixed upper limit for memory usage (-Xmx)?
- Understanding max JVM heap size – 32bit vs 64bit
- Preloading java classes/libraries at jar startup?
- How can I disable IPv6 stack use for IPv4 IPs on JRE?
- ClassCastException because of classloaders?
- What time zone does Date.toString() display?
- Interpreting jemaloc data possible off-heap leak
- How to calculate HashMap memory usage in Java?
- Android Studio Build gradle OutOfMemoryError
- Force Java timezone as GMT/UTC
- Is it bad practice to use break to exit a loop in Java? [closed]
- What is the difference between JDK_JAVA_OPTIONS and JAVA_TOOL_OPTIONS when using Java 11?
- Java: non-heap-memory analyzes
- Is *this* really the best way to start a second JVM from Java code?
- Why is the 64bit JVM faster than the 32bit one?