java incorrect timezone

前端 未结 9 1000
说谎
说谎 2020-12-06 02:07

I have an instance of Java which seems to be using a completely incorrect time zone. Instead of using the Australia/Sydney time zone which Windows is using, it is using the

9条回答
  •  感情败类
    2020-12-06 02:47

    Ensure you set the timezone for the JVM when starting the application:

    -Duser.timezone="Australia/Sydney"
    

提交回复
热议问题