thkukuk / fritzbox-monitoring

Scripts around and for containers to monitor a Fritzbox
2 stars 2 forks source link

TZ Timezone is not taken from the host system #2

Closed I2e4per closed 2 years ago

I2e4per commented 3 years ago

Hello Thorsten,

first of all i would mention that I am very happy with your container and that I am using it quit for a while.I Appreciate your efforts. An I want to point out, that this issue isn't really an issue from my point of view. It is more a nice to have related issue.

I am running your container on an Sync DS on Portainer. And for some reason, it does not take the actual Timezone from the Syno. Instead it uses the default.

So i tinkered a little around and I managed to set it right for my case with followed commands:

rm -rf /etc/localtime ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime

The big disadvantage of this is, that it has of course to be redone after every powercycle / reboot and so on.

Now I am wondering how you manage this ? Or aren't you facing this maybe because you are using another platform ?

Could it be a solution to add an extra TZ Environment Variable to pass the correct timezone and have it configurable ? In this case i.e. "TZ=Europe/Berlin"

Thank you!

thkukuk commented 3 years ago

Do you mean the mrtg based container? This has the TZ Environment Variable, it was just missing in the README.

thkukuk commented 2 years ago

Works for me

I2e4per commented 2 years ago

Works for me either.

Great job. Thank you!

Am 09.02.2022 um 18:18 schrieb Thorsten Kukuk @.***>:

 Closed #2.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.