solarkennedy / wine-x11-novnc-docker

Base Docker image to run wine programs in a web browser via noVNC (html5 vnc viewer) + Xvfb + x11vnc
Apache License 2.0
273 stars 103 forks source link

TimeZone #15

Open Viksie opened 4 years ago

Viksie commented 4 years ago

Changing the TimeZone in the container is not reflected in the wine application,

Viksie commented 4 years ago

I added the TZ environmental variable to the docker-compose file. Validated that TZ reflects correctly in the container.

Then after running

ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

and restarting the container, the localtime in the wine application is still reflecting Etc/UTC.

How would this be resolved ?

bkjaya2020 commented 3 years ago

You can add the following lines in the Dockerfile to unlink the local time RUN unlink /etc/localtime RUN apt install vim

Then compose and make the image

Now you can change the local time using the bash in the fluxbox

vim /etc/timezone

I have tried in this method in bkjaya2020 /smathstudio-docker which is a fork of solarkennedy/wine-x11-novnc-docker