charlescng / docker-containers

Docker containers and unRAID docker templates
10 stars 11 forks source link

Apply workaround for graph timezone always using UTC #31

Closed charlescng closed 1 year ago

charlescng commented 1 year ago

Fix https://github.com/charlescng/docker-containers/issues/25

Even though the system, PHP, database and user timezones are all set correctly, the graphs always uses UTC for its timeseries.

It appears that the graphs are using /etc/localtime, even though $TZ is set correctly in the container.

The workaround is to link /etc/localtime to the right timezone based on the timezone setup in firstrun.sh.

Reference: https://forums.unraid.net/topic/75153-support-uberchuckie-observium/?do=findComment&comment=1073295