Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Clock with correct timezone #12

Open
TeraJaQ opened this issue Apr 15, 2021 · 2 comments
Open

Set Clock with correct timezone #12

TeraJaQ opened this issue Apr 15, 2021 · 2 comments

Comments

@TeraJaQ
Copy link

TeraJaQ commented Apr 15, 2021

how set the correct timezone?

@TeraJaQ
Copy link
Author

TeraJaQ commented Apr 15, 2021

sorry for the disturb but i've solved by adding a TZ= Europe/Rome in the environment section inside the docker-compose..
This is my docker-compose.yml

version: '3'
services:
  rpi-monitor:
    container_name: rpi-monitor
    image: michaelmiklis/rpi-monitor:latest
    restart: unless-stopped
    devices:
      - /dev/vcsm-cma:/dev/vcsm-cma
      - /dev/vchiq:/dev/vchiq
    volumes:
      - /proc:/dockerhost/proc:ro
      - /usr/lib:/dockerhost/usr/lib:ro
      - /etc:/dockerhost/etc:ro
      - /sys:/dockerhost/sys:ro
      - /boot:/boot
      - /opt/vc:/opt/vc
      - ./cgroup:/sys/fs/cgroup
#      - ./rpimonitor:/etc/rpimonitor  
#      - ./stat:/var/lib/rpimonitor/stat  #to store rrd db but don't work
    environment:
    - TZ=Europe/Rome
    ports:
    - "8888:8888"

@BrodyStone21
Copy link

BrodyStone21 commented Jul 18, 2021

I'm using docker run but for me doing -e TZ=America/Indianapolis didn't throw any errors and everything appears to line up correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants