hykilpikonna / AquaDX

A certain magical arcade server
https://aquadx.net
Other
284 stars 65 forks source link

docker: use host timezone #37

Closed Zaphkito closed 5 months ago

hykilpikonna commented 5 months ago

Not all host OS are Unix tho

Zaphkito commented 5 months ago

Not all host OS are Unix tho

isn't Docker for Windows just some emulation to Unix then create a container? I remember that depend on Hyper-V, and setup guide recommend me install that

my machine can't install Hyper-V or other in Windows, because that conflict with my other program/service, can you test it when you have time and tell me did it work?

AsakuraMizu commented 5 months ago

This is not needed. Set environment variable TZ like TZ=Asia/Shanghai to change the timezone.

hykilpikonna commented 5 months ago

Just tested this. On Windows, the values in /etc/timezone and /etc/localtime doesn't reflect the actual system timezone but rather returns UTC. So I think setting the environment variable would be a better solution

image