Setting Timezone in 2.0 MacOS Builds

Problem

Using the TZ environment key does not work on 2.0 macOS builds.

 

Solution

In order to set the timezone, you'll need to add the following command to your configuration: 

      # Set Timezone
      - run:
          name: set timezone
          command: |
            sudo systemsetup -settimezone "$TIMEZONE"

Replace $TIMEZONE with whatever timezone you want to use. You can get a list of all supported timezones with sudo systemsetup -listtimezones.

Was this article helpful?
3 out of 3 found this helpful

Comments

0 comments

Article is closed for comments.