Setting the Timezone

To configure the timezone for a software event broker you can use the --env TZ=<timezone> environment variable when the container is created. For a step-by-step procedure to create a software event broker Docker container, refer to Setting Up Container Images initial set up guides.

To configure the timezone on Solace PubSub+ appliance, refer to the Initial Setup guide.

In the example below, we will set up a timezone to Canada/Eastern using a simple configuration suitable for test deployment.

sudo docker run -d -p 8080:8080 -p 55555:55555 --shm-size=1g --env username_admin_globalaccesslevel=admin --env username_admin_password=admin --env TZ=Canada/Eastern --name=solace solace/solace-pubsub-standard

You can check the configured timezone using the show clock Solace CLI command. To see the list of available timezones use the docker run --rm <imagename>:imagetag lsTimezones command.