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

Fix: Allow timzeone to be changed #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kapdap
Copy link

@kapdap kapdap commented Mar 21, 2023

unifi-core is unable to change timezone due to /etc/timezone /etc/localtime being writable only by root. This can result in cameras being updated with the incorrect timezone.

error: Failed to change the timezone: Command failed: ubnt-systool timezone Pacific/Auckland
Failed to set time zone: Access denied
rm: cannot remove '/etc/localtime': Permission denied
cp: cannot remove '/etc/localtime': Permission denied
/sbin/ubnt-systool: 234: eval: cannot create /etc/timezone: Permission denied

kapdap added 2 commits March 22, 2023 11:32
unifi-core is unable to change timezone due to /etc/timezone /etc/localtime being writable only by root. This can result in cameras being updated with the incorrect timezone.

```
error: Failed to change the timezone: Command failed: ubnt-systool timezone Pacific/Auckland
Failed to set time zone: Access denied
rm: cannot remove '/etc/localtime': Permission denied
cp: cannot remove '/etc/localtime': Permission denied
/sbin/ubnt-systool: 234: eval: cannot create /etc/timezone: Permission denied
```
@markdegrootnl
Copy link
Owner

Thanks! I'm trying to fix some issues and will merge this request in the next update.

@mpepping
Copy link

mpepping commented Apr 8, 2023

+1 for this .. setting the timezone is required by other integrations, such as pyunifiprotect or home assistant

@jepperc
Copy link

jepperc commented Feb 13, 2024

@markdegrootnl could this be merged?

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

Successfully merging this pull request may close these issues.

4 participants