This article is about CodeShip Basic.

Setting Timezone

You will need about one minute to read this article.

Default Timezone On CodeShip Basic

The default timezone on CodeShip’s test VMs is UTC +00:00 or Etc/UTC.

Setting A Custom Timezone

You can set a custom timezone with a specific environment variable, and there are two ways to set this value. You can either use your project’s environment variables UI or you can set it via a custom script in your setup commands

You simply need to set the value TZ to the timezone of your choice. If using your own script, you will run something like:

export TZ='America/New_York'

You can see the full list of valid TZ values here.

Need more help?

Contact our support team or post on Stack Overflow using the tag #codeship. Did you check the status page and changelog?

There are also several code examples and sample projects available for you to get started with.

Article not helpful?

Does this article need improvement? If so, please send feedback or submit a pull request!