We’re running Gitea using Docker on Rancher OS. Rancher OS is very lightweight Linux distro that is not packaged with timezone data, thus it is not on the host and the time is set a UTC. If I run a “date” command from within the container I get Fri May 3 08:55:54 UTC 2019 (which would be expected). However, I was wondering what the correct way to set the timezone for Gitea would be? Is there a setting in app.ini? Or can we just pass -e “TZ=Europe/London” to the docker run command?
Please kindly note that from version 1.20.2, it’s necessary to define your timezone in app.ini, unless your 2FA codes will not work. It is my personal observation.