Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
因此,我的 Ubuntu 服务器上的系统时间在周日使用 DST 进行了相应更新。
然而,我 glassfish 日志上的时间戳仍然是一个小时。我已经重新启动了应用程序服务器,但这似乎并没有改变任何东西。
一个快速的 hello-world 表明 JVM 获取了(正确的)系统时间。关于为什么 glassfish 日志中的时间与系统或 JVM 日期和时间不匹配的任何想法?
正如建议的那样,我也运行了该tzupdate工具。这似乎没有多大作用。
tzupdate
有什么想法吗?我该如何修复这个?
您可能需要更新 JVM 以获取最新的时区信息。或使用时区更新工具。