marthoc / docker-homeseer

HomeSeer HS3 Docker Image
https://hub.docker.com/r/marthoc/homeseer/
MIT License
13 stars 12 forks source link

24 Hour Clock #16

Open kridan83 opened 5 years ago

kridan83 commented 5 years ago

I am not able to change to 24 houc clock after I installed the container on my Unraid server. I had a Ubuntu Server and there I change the go file and autoupdate_hs file from export LANG=en_US.UTF-8 to export LANG=en_GB.UTF-8. But that is not working. Is it possible to make one dockerfile so Homeseer gets a 24 hour clock?

scyto commented 4 years ago

@kridan83 did you solve this? I am not sure what could be changed about the docker container to fix this? I am not sure if the -v /etc/localtime:/etc/localtime:ro has some effect on it - i..e. you would need to set the locale on the host too?

tettesen commented 4 years ago

I solved this by setting the environment variable LANG=en_GB.UTF-8 when deploying the container from Portainer. It seems to have worked for the clock in the web interface and the logfiles. I haven't had time to check if there are other instances of 12/24H timestamps somewhere in the HS3 system as I literally just got it up and running.