Forum Discussion

jrziggy's avatar
jrziggy
Occasional Contributor
15 days ago

Set timezone in testrunner

I am having trouble setting the timezone as a testrunner argument.

My server is running on UTC and I want to see the log output in US/Eastern timezone, but the -Duser.timezone=US/Eastern argument seems to have no effect in the Jenkins logs. 

There are two time stamps for the ReadyAPI entries in the log; 1st is Jenkins (corrected by the user account to US/Eastern timezone), and the 2nd is the log from testrunner which remains in UTC despite having used the -Duser.timezone argument. 

Anyone know the syntax to fix this - underlined in the examples below without having to change system time of edit the log4j.properties?

Example output lines at 2:11 PM Eastern time:

This line is just Jenkins:
14:11:01 Configuring log4j from [/home/jenkins/SmartBear/ReadyAPI-3.59.0/bin/soapui-log4j.xml]

This line is the Jenkins entry followed by the ReadyAPI output:
14:11:01 18:11:01,954 INFO [license] ReadyAPI 3.59.0 (build 1) started - System properties: {OS=Linux, User name=jenkins}

I've tried several variations on -Duser.timezone=US/Eastern in the testrunner command line.

No RepliesBe the first to reply