We are running Jenkins on server with UTC but our office is located at Berlin. Thus we configured -Dorg.apache.commons.jelly.tags.fmt.timeZone=Europe/Berlin
to have the UI in CE(S)T.
But how to ensure Maven Java builds to run with default TimeZone Europe/Berlin?
We tried to add -Duser.timezone=Europe/Berlin
to the Jenkins scipt and to Global MAVEN_OPTS.
But TimeZone.getDefault()
(in jUnit tests) results in sun.util.calendar.ZoneInfo[id="GMT",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null]
.