• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[INFO] Setting the correct timezone in a container
While netPI's system time configured in the management web GUI


is passed to a container the timezone isn't. This is a Docker property.

In order to let a container have the correct timezone the environment variable TZ needs to be passed to the container when started. Otherwise the host time may differ from the container's time.

Here is an example how to set the variable:


Find there the list of possible timezones that can be configured
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)


Possibly Related Threads...
Thread Author Replies Views Last Post
  [INFO]Docker DNS server Armin@netPI 0 10 March-7th-2019, 09:02 AM
Last Post: Armin@netPI
  Multi-stage builds for slim container images Armin@netPI 0 4 February-7th-2019, 04:14 PM
Last Post: Armin@netPI
Heart [INFO] TeamViewer comes to netPI Armin@netPI 0 17 February-4th-2019, 04:41 PM
Last Post: Armin@netPI
  [SOLVED] Unique identifier in container mmolder 1 24 January-23rd-2019, 03:06 PM
Last Post: Armin@netPI
  [INFO] Best base image to use for own containers Armin@netPI 1 110 January-15th-2019, 08:58 PM
Last Post: Armin@netPI
  [SOLVED] activate LED1/2 with Node-RED + fieldbus nodes container Christian_Rau 5 74 January-11th-2019, 08:06 AM
Last Post: Armin@netPI
  [SOLVED] install ssh service to running container paubau 2 134 October-12th-2018, 01:03 PM
Last Post: paubau
  [SOLVED] nodered : flows_localhost deleted after creating an image from container paubau 6 186 September-21st-2018, 10:19 AM
Last Post: paubau
  [SOLVED] MySQL Container / Server in another Container? paubau 2 148 September-5th-2018, 08:00 AM
Last Post: paubau
  [SOLVED] STDOUT logging when container is started with -I and some CMD Thomas 2 165 August-23rd-2018, 01:19 PM
Last Post: Armin@netPI

Forum Jump:

Users browsing this thread: 1 Guest(s)