Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Pass time zone into tests launched via maven. If you run tests via, say
mvn -Duser.timezone=Europe/Moscow test
then each of the tests instantiated by surefire in each sub-project will be run in a JVM whose default timezone is Moscow.
This helps us ensure that JDBC date-time conversions work correctly in all time zones.
A limitation is that the timezone name must not contain spaces: -Duser.timezone=America/Los_Angeles works, -Duser.timezone=America/Los Angeles does not.
You can safely ignore the warning
[WARNING] The system property user.timezone is configured twice! The property appears in <argLine/> and any of <systemPropertyVariables/>, <systemProperties/> or user property.