Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-700

Pass time zone into tests

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0-incubating
    • 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.
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            julianhyde Julian Hyde
            julianhyde Julian Hyde
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment