Time zone issue on docker

Hi -- I am running channels dvr on a docker image and the timezone for the guide is incorrect.

Both my host OS (CentOS 7) and shell access from within the docker alpine container report the correct timezone EDT (via linux "date" command, as does the web GUI for channels dvr, however the guide/local time is stuck at UTC which is 4 hours ahead. On the GUI the 'uptime' timezone is wrong and does not match the 'timezone' value directly below it. For example it says uptime xx minutes started today at 4:00AM but it is actually 12:00AM here.

Image attached. channels-dvr-snap

Below is my docker config -- note I added in the volume line to share the /etc/localtime from my host OS -- either way I still have the issue.

docker create
--name=channels-dvr
-e PUID=xx
-e PGID=xx
-e TZ=America/New_York
--net=host
--restart=on-failure:10
--device /dev/dri:/dev/dri
--volume /etc/localtime:/etc/localtime
--volume /path/to/config:/channels-dvr
--volume /path/to/storage:/shares/DVR
fancybits/channels-dvr:latest

Thank you for any ideas.

edit -- just fyi in my docker config I edited my local paths out before posting :slight_smile: Everything records and works fine except it just has the wrong timezone. Thanks.

Check the time zone on your local browser

Genius! Thank you sir. :grinning: Apparently my mind is already at 4am and I should go to bed haha. Thanks again.