Server time and log time off by an hour
Hello,
We have a scheduled trigger to run a build daily at 21:00 pm(Eastern Time). However, the build always starts at 22:00 pm(Eastern Time).
We have verified that both server and agents are in the same time zone (Eastern Time).
Also, I found that the server log time is off by an hour too. For instance, the last modified time of teamcity-server.log shows 10:50 AM, but when I open the file, the latest entry in log file is 9:50 AM.
Any help will be appreciated!
Ge
TeamCity version: TeamCity Professional 2017.1 (build 46533)
JAVA version:
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
Please sign in to leave a comment.
Hi Ge,
Scheduled triggers are triggered on the server, so agents' configurations are irrelevant for it. That means, this is exclusively server configuration. The server log being off for one hour definitely means that the server is not in sync with the timezone. Maybe something happened during the DST change? Did you try restarting it?
When did this issue start to happen?
Hi Denis,
The problem has been around since TeamCity 9.
After reaching out to JetBrains, we were told that the problem might be caused by the version of JAVA we used (jdk1.6 at that point), and it would be fixed by upgrading TeamCity and jdk version.
Now we have upgraded the TeamCity to 2017.1 and jdk to1.8, yet the problem still persists.
Is there any other setting that might cause this issue?
Thanks!
Ge