Configuring the containers' time zone

By default, the time zone for Black Duck containers is UTC. For monitoring purposes, you may want to change this value so that the timestamps shown in logs reflect the local time zone.

To configure a different time zone:

  1. Set the value of the TZ environment variable in the blackduck-config.env file in the docker-swarm directory to the new time zone. Use the values shown in Wikipedia, as shown here.

    For example, to change the timezone to that used in Denver, Colorado, enter:

    TZ=America/Denver
  2. Restart the containers.