Docker Community Forums

Share and learn in the Docker community.

Change openHab Time and Timezone

Unfortunately the time and timezone of my container is not right. I search the net, but did not found any help for my setup.

I have my openhab2 container running on my Synology Nas via docker.

I managed to log me inside the container with my ssh terminal. but now I don’t know what to do to change to the right time and timezone.

Wrong: Mon 28 Dec 2020 07:30:45 PM UTC
Should be like my host: Mon 28 Dec 2020 20:30:45 CET 2020

How can I change this?

Thanks for the help

After a long search the answere is prety quick and very simple.

Stop the container, open the edit tab, go to environmant and inster a new variable called TZ and then as value I put Europe/Vienna.

This fixed the problem in my case.