How can I fix the Java Time Zone?
# sudo cp /etc/localtime /etc/localtime.dist
# sudo ln -fs /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
Source: By Mike Stone as answer to the question
This code snippet was collected from stackoverflow, and is licensed under CC BY-SA 3.0
Related code-snippets:
- Which timezone is most important?
- Is gettimeofday() guaranteed to be of microsecond resolution?
- How do I convert a CSV into an XML file in Java?
- Is Object Property accessible from within object method?
- What is error log per Virtual Host?
- What's the API for GTK messagebox?
- What is the meaning of the type safety warning in some Java generics casts?
- What is the difference between Int and Integer in Java and C#?
- How do I get root permission for my file inside vi?
- How can I add custom button in Java?
- What are the different methods to parse strings in Java?
- Is it illegal to throw a Null parameter without a NullPointerException for that parameter?
- What tools are good for code analysis?
- How do I read from a file that is actually being written to?
- Why is Java autoboxing used only for method invocations and not classes. The type has a class and an operator and the methods are autoboxed, doesn't this mean revocations of the method can be invoked?