更新时间:2023-09-17 12:12:04
除非 tomcat 有个人 TZ 环境变量,否则它使用 /etc/localtime
在我的系统上是 /usr/share/zoneinfo/America/New_York
.
Unless tomcat has a personal TZ environment variable, then it uses /etc/localtime
which on my system is a copy of /usr/share/zoneinfo/America/New_York
.
Tomcat 的个人时区将在其启动脚本中以如下形式指定:
Tomcat's personal timezone would be specified in its startup script in a form like:
-Duser.timezone=GMT