Setting timezone in circle 2



I used the following to set the timezone in circle.yml:

version: 2
executorType: docker
  TZ: "/usr/share/zoneinfo/America/Los_Angeles"
  - image: suchitagarwal/spoke:1.3.5
  - image: mongo:3.2.10

However, in my tests, when I retrieve the current timezone, it still says UTC. Am I missing something?


The last comment here seems useful.

Also, you may want to review the configuration reference in CircleCI Docs as this config has a lot wrong with it.


For us it was adding this step:

- run:
      name: Switch timezone to Melbourne
      command: sudo cp /usr/share/zoneinfo/Australia/Melbourne /etc/localtime


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.