mattwebbio / orbital-sync

Synchronize multiple Pi-hole instances
http://orbitalsync.com
MIT License
431 stars 15 forks source link

Set TZ for correct show log time and format #298

Open dndhost opened 3 months ago

dndhost commented 3 months ago

What happened?

set TZ: "Europe/Moscow" in docker composer. Also LANG: "C.UTF-8", but log time is 4/11/2024, 8:51:04 AM: ➡️ Signing in to https://XXXX.XX Can I get the date and time display according to the given environment variables?

Version

1.8.1

Log output

4/11/2024, 8:51:04 AM: ➡️ Signing in to XXX.
4/11/2024, 8:51:04 AM: ✔️ Successfully signed in to XXX
4/11/2024, 8:51:04 AM: ➡️ Downloading backup from XX
vladaurosh commented 2 months ago

Looks like zone is set to UTC. Would be good if we can set timezone.

vladaurosh commented 2 months ago

Actually, this works if you set env variable TZ to your timezone.

dndhost commented 1 month ago

Actually, this works if you set env variable TZ to your timezone.

Hi, in my docker.txt FROM mattwebbio/orbital-sync:latest ENV TZ Europe/Moscow ENV LANG C.UTF-8 ENV LC_ALL C.UTF-8

docker compose TZ: 'Europe/Moscow' LANG: 'C.UTF-8' LC_TIME: 'C.UTF-8'

but in logs i see

6/10/2024, 7:54:23 AM: ➡️ Signing in to https://pihole-1 6/10/2024, 7:54:23 AM: ✔️ Successfully signed in to https://pihole-1 6/10/2024, 7:54:23 AM: ➡️ Downloading backup from https://pihole-1

What am I doing wrong?