You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2015/04/24 21:10:38 UTC

[jira] [Created] (CALCITE-700) Pass time zone into tests

Julian Hyde created CALCITE-700:
-----------------------------------

             Summary: Pass time zone into tests
                 Key: CALCITE-700
                 URL: https://issues.apache.org/jira/browse/CALCITE-700
             Project: Calcite
          Issue Type: Bug
            Reporter: Julian Hyde
            Assignee: Julian Hyde


Pass time zone into tests launched via maven. If you run tests via, say

{code}mvn -Duser.timezone=Europe/Moscow test{code}

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 {code}[WARNING] The system property user.timezone is configured twice! The property appears in <argLine/> and any of <systemPropertyVariables/>, <systemProperties/> or user property.
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)