jwestp / docker-supertuxkart

Docker image for deploying a SuperTuxKart server
GNU General Public License v3.0
14 stars 10 forks source link

Timezone / Log Time not correct #8

Closed iluvatyr closed 3 years ago

iluvatyr commented 3 years ago

When looking into the logs, the time used is always UTC as it seemed, I have set up the TZ Environment variable but it doesnt seem to change it.

Do you know how to implement it in this container so that it uses the correct timezone in the logs (/root/.config/supertuxkart/config-0.10/server_config.log)

I already tried setting it correctly by

apt install tzdata and setting /etc/timezone to my timezone, but the logs stay the same

I also tried mounting the /etc/localtime and /etc/timezone into the container, which also didnt change the time in the logs...

In other containers its possible to get the time correct by setting the TZ Variable.

Please let me know if you find out how to do this

iluvatyr commented 3 years ago

solved it by putting package tzdata in dockerfile...