Hilscher Community Forum
[INFO] Setting the correct timezone in a container - Printable Version

+- Hilscher Community Forum (https://forum.hilscher.com)
+-- Forum: netPI 3 - Docker featuring Industrial Raspberry Pi 3 platform (https://forum.hilscher.com/forum-1.html)
+--- Forum: Software (https://forum.hilscher.com/forum-5.html)
+--- Thread: [INFO] Setting the correct timezone in a container (/thread-373.html)



[INFO] Setting the correct timezone in a container - Armin@netPI - February-3rd-2019

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