Setting Timezone

The default timezone on Codeship’s test VMs is UTC +00:00 or Etc/UTC. To configure your build environment to a different timezone, simply assign the environment variable TZ to a valid timezone value from the tz database used by Linux/Unix systems. You can see the full list of valid TZ values here.

You can set your TZ value in your project’s Environment page or add it in the Setup Commands portion of your test configuration like so:

export TZ='America/New_York'

Need More Help?

Get in touch if you need more help, or post on Stack Overflow using the tag #Codeship.

  • Ask The Helpdesk A Question
  • Code Examples And Sample Projects
    • Was This Article Helpful?