-
Notifications
You must be signed in to change notification settings - Fork 448
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
Timezone env var not working and add new env var for country? #74
Comments
I cant find any way to influence the wizard's defaults. I suspect (haven't been able to confirm or deny though) that it is getting that data from your web browser and not from the server environment. |
Not sure if this is the same issue or not.. but I found that the timezone in the container (5.8.30) appeared to be UTC and passing the TZ variable did nothing to fix/change that. My fix was to mount in the host system's (in my cause Ubuntu) timezone/localtime files when running the container. Example docker run options:
|
The time stamps reported in the web interface are controlled appropriately from the web interface (and are set from the browser time zone during initial setup). Unfortunately, the initial setup wizard only seems to take the browser's reported UTC offset into account, then attempts to map that to a time zone, which can result in an inaccurate pre-selected default. You're just going to have to select the correct time zone during initial setup, adjust it during runtime, or file a bug with Ubiquiti to inform them that the default isn't accurate in certain conditions. However, the time stamps reported in the container logs are seemingly locked to UTC regardless of any other setting. Adding an |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
First of all thanks for this image! Very nice, saves me having to install all kinds of Java stuff ;)
I just started the container/the controller for the first time and it seems like the timezone env var isn't being picked up. I passed
TZ='Europe/Amsterdam'
as env var, yet the setup wizard has "Brussels, Copenhagen, Madrid, Paris" selected.Any idea why this isn't working?
And I was wondering if it would be possible to pass the country as an env var as well, just like the timezone. Hoping to be able to just skip the initial setup screen when starting a clean container :)
The text was updated successfully, but these errors were encountered: