How do I set the timezone in Tomcat for a single web app?

前端 未结 8 1918
春和景丽
春和景丽 2021-02-05 13:00

What is the best way to set the time zone in Tomcat for a single web app? I\'ve seen options for changing the command-line parameters or environment variables for Tomcat, but is

8条回答
  •  天涯浪人
    2021-02-05 13:32

    You can also use a VM argument to define it

    -Djdk.util.TimeZone.allowSetDefault=true
    

提交回复
热议问题