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

Container install not using container's TZ #65

Open
Swallowtail23 opened this issue Dec 12, 2022 · 2 comments
Open

Container install not using container's TZ #65

Swallowtail23 opened this issue Dec 12, 2022 · 2 comments

Comments

@Swallowtail23
Copy link

  • Unifi Protect Backup version: 0.8.7
  • Are you using a docker container or native?: Container

Description

I have podman (docker) set to use my local timezone, and the logging shows that is working but UPB's logging uses only UTC - note container log entry on the following line with UPB then appending UTC:
2022-12-12T11:37:41.962213664+10:00 stderr F 2022-12-12 01:37:41 [ INFO ] unifi_protect_backup.unifi_protect_backup : Starting...
Can UPB use the container's TZ instead of UTC?

@mmolitor87
Copy link
Contributor

I have my docker container set to use an environment variable such as - TZ=America/Chicago and it works just fine.

@e36Alex
Copy link

e36Alex commented May 5, 2024

I mounted the host config as a volume:

- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
´´´

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

3 participants